lynn said the following on 02/24/2012 07:50 AM:
Hi everyone I want to see the output of a command as in this script:
#!/bin/bash samba -i -d3 some-command
samba -i sends it output to the terminal and prevents the script from getting to the some-command
Ah, NO! The "-i" means "interactive" rather than "daemon mode" So that's like saying "sed >/dev/pts/3" Where is the input coming from?
I've tried: samba -i -d3 > /dev/pts/3 but still it doesn't run some command.
Can I see both the output and run some-command afterwards?
If that's what you want why don't you run with "-S' rather than "-i" ? -- Sometimes I lie awake at night, and I ask, "Where have I gone wrong?" Then a voice says to me, "This is going to take more than one night." Charles M. Schulz, Charlie Brown in "Peanuts" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org