View Single Post
Old 11th August 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

ocicat is correct, ask your yourself a question..

What does the program do? it executes a command.. prints some text.. executes another command, and then exits.

Now, if you run this program from inside "JWM", where do you think the output is going? do you think it'll just magically open a window with the output you desire?

On most POSIX systems, each program has a "terminal" tty attached to it(Unless it's a daemon.. syslog etc), and each program has 3 file descriptors, stdin, stdout and stderr.

When you run that command without any associated terminal, the output/input are effectively sent to /dev/null.

You can either delay the termination of the program with a sleep(3) call, or open an xterm and execute it manually. (Copying things over to /usr/local/bin is unnecessary, by default, the PATH environment variable sets $HOME/bin as a valid location for personal executables.).

Last edited by BSDfan666; 11th August 2008 at 03:46 PM.
Reply With Quote