Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

$temp_dir/birch-$pid-$2: No such file or directory #8

Closed
fehawen opened this issue Feb 4, 2020 · 1 comment · Fixed by #9
Closed

$temp_dir/birch-$pid-$2: No such file or directory #8

fehawen opened this issue Feb 4, 2020 · 1 comment · Fixed by #9
Labels
bug Something isn't working

Comments

@fehawen
Copy link
Contributor

fehawen commented Feb 4, 2020

I get the following messages from time to time:

path/to/birch: line 87: /tmp/birch-[pid]-[#nickname-random-text]: No such file or directory

Out of curiosity, I added the following to irc_print():

tee -a $HOME/birch-log.txt >> /dev/null << EOT

time: $(date)
pid: $pid
channel: $chan
channels: ${channels[*]}
temp_dir: $temp_dir
arg1: $1
arg2: $2

EOT

And here's the output I receive, where the second paragraph's arg1 and arg2 seems to be what's causing the No such file or directory error:

time: Tue 04 Feb 2020 03:26:55 PM CET
pid: 17947    
channel: #archlinux
channels: #kisslinux
temp_dir: /tmp
arg1:        <-- ^[[1;36mNekit1234007^[[m has quit ^[[1m#Nekit1234007!~Nekit1234@84.51.126.245 QUIT :Ping timeout: 272 seconds^[[m
arg2: #Nekit1234007!~Nekit1234@84.51.126.245 QUIT :Ping timeout: 272 seconds

time: Tue 04 Feb 2020 03:27:02 PM CET
pid: 17947
channel: #archlinux
channels: #kisslinux #archlinux
temp_dir: /tmp
arg1:        <-- ^[[1;34msigmundv^[[m has quit ^[[1m#sigmundv!sigmundv@nat/ibm/x-mngnfelapcnukspr QUIT :Ping timeout: 265 seconds^[[m
arg2: #sigmundv!sigmundv@nat/ibm/x-mngnfelapcnukspr QUIT :Ping timeout: 265 seconds

time: Tue 04 Feb 2020 03:27:05 PM CET
pid: 17947
channel: #archlinux
channels: #kisslinux #archlinux
temp_dir: /tmp
arg1:        --> ^[[1;36mNekit1234007^[[m has joined ^[[1m#archlinux^[[m
arg2: #archlinux
                                                                                                        
time: Tue 04 Feb 2020 03:27:19 PM CETpid: 17947
channel: #archlinux
channels: #kisslinux #archlinux
temp_dir: /tmp
arg1:        --> ^[[1;34mTripleDES^[[m has joined ^[[1m#archlinux^[[m
arg2: #archlinux

Not sure if I should edit out any nicknames etc for privacy concerns; let me know and I'll edit it.

Furthermore, not sure if this is due to misuse from my end or if it's something worth looking into.

@dylanaraps dylanaraps added the bug Something isn't working label Feb 4, 2020
@fehawen
Copy link
Contributor Author

fehawen commented Feb 4, 2020

Update note: After inspecting the birch files in /tmp, it looks like either the entire first or second argument constitutes the tmp file names, as I have tmp files by the name of e.g. 'birch-5879-#DasMoeh!~Orlando@HSI-KBW-095-208-211-101.hsi5.kabel-badenwuerttemberg.de QUIT :Remote host closed the connection'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants