srinivas_rocks has asked for the wisdom of the Perl Monks concerning the following question:
Seek your help again
In a small perl script I am using here document to execute multipe commands and store the obtained output in an array.
Below is my code
@result=`sh /tmp/bin/ssmcons 192.168.2.114 << EOF; access; subagent list; quit; EOF`;
With this code I am trying to run a binary and execute some commands related to that.
The script is getting stuck without any output. When I observe the ps output it is giving me
Can you help me in overcomming this problemroot 6513 6118 0 18:41 pts/4 00:00:00 perl ssm_conf.pl root 6514 6513 0 18:41 pts/4 00:00:00 sh -c sh /tmp/bin/ssmc +ons 192.168.2.114 << EOF;?access;?subagent list;?quit;?EOF
Thanks in Advance.
Srinivas.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: here document help
by Fletch (Bishop) on Apr 03, 2008 at 13:43 UTC | |
by srinivas_rocks (Sexton) on Apr 03, 2008 at 15:25 UTC | |
|
Re: here document help
by superfrink (Curate) on Apr 03, 2008 at 18:34 UTC | |
by srinivas_rocks (Sexton) on Apr 04, 2008 at 13:11 UTC | |
by Corion (Patriarch) on Apr 04, 2008 at 13:24 UTC |