srinivas_rocks has asked for the wisdom of the Perl Monks concerning the following question:
I wanted to integrate a small shell command with perl. My main intension is to connect to remote system using ssh protocol by a normal user and switch to a previlaged user and execute commands. My shell command is :
Can you suggest me how can I embed this part of code in my perl script.[impact@station116 root]$ su netcool -c whoami Password: netcool [impact@station116 root]$
Thanks in advance,
Srinivas.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Integrating shell and perl
by Fletch (Bishop) on Jun 18, 2008 at 18:23 UTC | |
|
Re: Integrating shell and perl
by moritz (Cardinal) on Jun 18, 2008 at 18:25 UTC | |
|
Re: Integrating shell and perl
by pc88mxer (Vicar) on Jun 19, 2008 at 04:44 UTC | |
|
Re: Integrating shell and perl
by chrism01 (Friar) on Jun 19, 2008 at 06:40 UTC |