In Linux, on an extremely long running vim session, calls to system() fail with E484 âcan't open file /tmp/â

Clash Royale CLAN TAG#URR8PPP
up vote
6
down vote
favorite
I've noticed this only on long running vims in my Linux server. I've narrowed down the E484s to lines of my vimscript that call system.
I just wonder if there is a way to deal with this because so far i have just been closing and restarting vim if this happens. But since the problem is so specific, it would be nice if it could be addressed so i can continue to use the running instance.
It's tricky to test and iterate on this because it takes at least 3 weeks before a vim instance gets into this state.
linux error
add a comment |Â
up vote
6
down vote
favorite
I've noticed this only on long running vims in my Linux server. I've narrowed down the E484s to lines of my vimscript that call system.
I just wonder if there is a way to deal with this because so far i have just been closing and restarting vim if this happens. But since the problem is so specific, it would be nice if it could be addressed so i can continue to use the running instance.
It's tricky to test and iterate on this because it takes at least 3 weeks before a vim instance gets into this state.
linux error
add a comment |Â
up vote
6
down vote
favorite
up vote
6
down vote
favorite
I've noticed this only on long running vims in my Linux server. I've narrowed down the E484s to lines of my vimscript that call system.
I just wonder if there is a way to deal with this because so far i have just been closing and restarting vim if this happens. But since the problem is so specific, it would be nice if it could be addressed so i can continue to use the running instance.
It's tricky to test and iterate on this because it takes at least 3 weeks before a vim instance gets into this state.
linux error
I've noticed this only on long running vims in my Linux server. I've narrowed down the E484s to lines of my vimscript that call system.
I just wonder if there is a way to deal with this because so far i have just been closing and restarting vim if this happens. But since the problem is so specific, it would be nice if it could be addressed so i can continue to use the running instance.
It's tricky to test and iterate on this because it takes at least 3 weeks before a vim instance gets into this state.
linux error
asked Aug 6 at 15:05
Steven Lu
962315
962315
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
8
down vote
accepted
This happens when some system cron job cleans out "unused" files from /tmp. The solutions are:
Find that cron job and stop it from rm'ing your Vim /tmp files.
Recreate Vim's temporary directory.
Given the temporary directory name from the error message, you can recreate the directory manually with "!mkdir <dirname>", or you can use this command which you can put in your ~/.vimrc:
command! Mktmpdir call mkdir(fnamemodify(tempname(),":p:h"),"",0700)
That command was contributed to the vim_use list by Ben Schmidt.
This is wonderful, exactly the kind of manual workaround i need, thanks!
â Steven Lu
Aug 6 at 18:29
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
8
down vote
accepted
This happens when some system cron job cleans out "unused" files from /tmp. The solutions are:
Find that cron job and stop it from rm'ing your Vim /tmp files.
Recreate Vim's temporary directory.
Given the temporary directory name from the error message, you can recreate the directory manually with "!mkdir <dirname>", or you can use this command which you can put in your ~/.vimrc:
command! Mktmpdir call mkdir(fnamemodify(tempname(),":p:h"),"",0700)
That command was contributed to the vim_use list by Ben Schmidt.
This is wonderful, exactly the kind of manual workaround i need, thanks!
â Steven Lu
Aug 6 at 18:29
add a comment |Â
up vote
8
down vote
accepted
This happens when some system cron job cleans out "unused" files from /tmp. The solutions are:
Find that cron job and stop it from rm'ing your Vim /tmp files.
Recreate Vim's temporary directory.
Given the temporary directory name from the error message, you can recreate the directory manually with "!mkdir <dirname>", or you can use this command which you can put in your ~/.vimrc:
command! Mktmpdir call mkdir(fnamemodify(tempname(),":p:h"),"",0700)
That command was contributed to the vim_use list by Ben Schmidt.
This is wonderful, exactly the kind of manual workaround i need, thanks!
â Steven Lu
Aug 6 at 18:29
add a comment |Â
up vote
8
down vote
accepted
up vote
8
down vote
accepted
This happens when some system cron job cleans out "unused" files from /tmp. The solutions are:
Find that cron job and stop it from rm'ing your Vim /tmp files.
Recreate Vim's temporary directory.
Given the temporary directory name from the error message, you can recreate the directory manually with "!mkdir <dirname>", or you can use this command which you can put in your ~/.vimrc:
command! Mktmpdir call mkdir(fnamemodify(tempname(),":p:h"),"",0700)
That command was contributed to the vim_use list by Ben Schmidt.
This happens when some system cron job cleans out "unused" files from /tmp. The solutions are:
Find that cron job and stop it from rm'ing your Vim /tmp files.
Recreate Vim's temporary directory.
Given the temporary directory name from the error message, you can recreate the directory manually with "!mkdir <dirname>", or you can use this command which you can put in your ~/.vimrc:
command! Mktmpdir call mkdir(fnamemodify(tempname(),":p:h"),"",0700)
That command was contributed to the vim_use list by Ben Schmidt.
edited Aug 6 at 21:00
answered Aug 6 at 16:42
garyjohn
4,639913
4,639913
This is wonderful, exactly the kind of manual workaround i need, thanks!
â Steven Lu
Aug 6 at 18:29
add a comment |Â
This is wonderful, exactly the kind of manual workaround i need, thanks!
â Steven Lu
Aug 6 at 18:29
This is wonderful, exactly the kind of manual workaround i need, thanks!
â Steven Lu
Aug 6 at 18:29
This is wonderful, exactly the kind of manual workaround i need, thanks!
â Steven Lu
Aug 6 at 18:29
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fvi.stackexchange.com%2fquestions%2f17019%2fin-linux-on-an-extremely-long-running-vim-session-calls-to-system-fail-with%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
