Loading ...
Sorry, an error occurred while loading the content.
 

Re: Process handling anomaly

Expand Messages
  • Kingsley G. Morse Jr.
    I figured it out. gvim can t reliably execute some external commands, and :help gui-pty suggests trying ... which worked. Thanks, Kingsley ... --
    Message 1 of 2 , Aug 24, 2004
      I figured it out.

      gvim can't reliably execute some external
      commands, and ":help gui-pty" suggests trying

      :set noguipty

      which worked.

      Thanks,
      Kingsley

      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?
      >
      > Thanks,
      > Kingsley
      >
      >
      > #!/bin/bash
      > # 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
      > done
      > --
      >

      --
    Your message has been successfully submitted and would be delivered to recipients shortly.