Re: Process handling anomaly
- I figured it out.
gvim can't reliably execute some external
commands, and ":help gui-pty" suggests trying
On 08/24/04 05:00, Kingsley G. Morse Jr. wrote:
> Here's a script that demonstrates an anomaly with
> gvim and process handling on linux.
> It's supposed to create a file named
> "/tmp/touch_file", but sometimes it fails.
> Why doesn't it always create /tmp/touch_file?
> # Why would a gvim run with -f (no fork and detach) intermittently fail to execute an application in the background with ":!nohup <program> &" ?
> while read -p "Press <enter> or ^C " ; do
> rm -f /tmp/touch_file
> # Delete either the "-f" or the "&" and it always works. KGMJR 8/24/04
> gvim -f -R \
> -c ':!nohup touch /tmp/touch_file & ' \
> -c ':q' /tmp/edit_file
> ls -l /tmp/touch_file