Milamber has asked for the wisdom of the Perl Monks concerning the following question:
works like a charm. However, I want to hide the output from /etc/init.d/networking/start from the terminal, and just display my success or failure message. I've tried directing STDOUT to /dev/null, to no avail (and probably not surprisingly). My Cookbook has a recipe for using IPC::Open3, which I think might do what I want once I suss out what I'm doing, but I was wondering if there's another way of doing this that I am missing in my ignorance. The point of this script is, by the by, simply because I can and because it is more fun than the simple shell script I have to accomplish this task already.system('/etc/init.d/networking stop'); system('cp /this/file /to/there'); system('/etc/init.d/networking start');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hide program output from terminal
by haoess (Curate) on Sep 15, 2006 at 08:03 UTC | |
|
Re: Hide program output from terminal
by McDarren (Abbot) on Sep 15, 2006 at 08:02 UTC | |
by Milamber (Beadle) on Sep 15, 2006 at 09:24 UTC | |
|
Re: Hide program output from terminal
by Milamber (Beadle) on Sep 15, 2006 at 08:38 UTC | |
|
Re: Hide program output from terminal
by Tanktalus (Canon) on Sep 15, 2006 at 16:01 UTC | |
by Milamber (Beadle) on Sep 16, 2006 at 13:36 UTC |