Discussion:
Running commands on the server and returning output
(too old to reply)
wissama
2005-11-14 19:26:35 UTC
Permalink
Hello,
Is there anyway that I can run a command on the server and return the
output of that command from perl. I appreciate a response.
Thanks
Guenter Knauf, DevNet SysOp 32
2005-11-14 19:54:44 UTC
Permalink
Hi,
Post by wissama
Hello,
Is there anyway that I can run a command on the server and return the
output of that command from perl. I appreciate a response.
using backticks should work.

Guenter.
wissama
2005-11-14 20:20:18 UTC
Permalink
What is backticks?
Post by Guenter Knauf, DevNet SysOp 32
Hi,
Post by wissama
Hello,
Is there anyway that I can run a command on the server and return the
output of that command from perl. I appreciate a response.
using backticks should work.
Guenter.
Guenter Knauf, DevNet SysOp 32
2005-11-14 21:15:35 UTC
Permalink
Hi,
see attachment. This works _only_ with NLMs - not with console commands
like 'volumes' or such!

Guenter.
Post by wissama
What is backticks?
Post by Guenter Knauf, DevNet SysOp 32
Hi,
Post by wissama
Hello,
Is there anyway that I can run a command on the server and return the
output of that command from perl. I appreciate a response.
using backticks should work.
Guenter.
begin 644 tstbackticks.pl
M(R%P97)L#0HC('-I;7!L92!T97-T('-C<FEP="!W:&EC:"!T97-T<R!T:&4@
M4&5R;#***@8F%C:W1I8VL@<WES=&5M(&-A;&PN#0H-"FEF("@A)$%21U9;,%TI
M('L-"B`@("`@<')I;G0@(E5S86=E.B`D,"`\8V]M;6%N9#Y<;B([#0H@("`@
M(&5X:70[#0I]#0H-"B1M>7)E=#***@8"1!4D=66S!=8#L-"@T*<')I;G0@(DAE
M<F4G<R!W:&%T('=E(&=O="!B86-K(&EN('1H92!V87(Z7&XB("X@*"<J)R!X
M(#<P*2`N(")<;B([#0IP<FEN="`D;7ER970@+B`H)RHG('@@-S`I("X@(EQN
((CL-"@T*#0H`
`
end
wissama
2005-11-15 00:17:37 UTC
Permalink
Thanks,
Do you know if there is any other methods for running with console
commands? I appreciate your responses.
Thanks
Post by Guenter Knauf, DevNet SysOp 32
Hi,
see attachment. This works _only_ with NLMs - not with console commands
like 'volumes' or such!
Guenter.
Post by wissama
What is backticks?
Post by Guenter Knauf, DevNet SysOp 32
Hi,
Post by wissama
Hello,
Is there anyway that I can run a command on the server and return the
output of that command from perl. I appreciate a response.
using backticks should work.
Guenter.
Guenter Knauf, DevNet SysOp 32
2005-11-15 01:49:40 UTC
Permalink
Hi,
Post by wissama
Thanks,
Do you know if there is any other methods for running with console
commands? I appreciate your responses.
I dont know. What do you need to do? probably there are other ways...

Guenter.

Continue reading on narkive:
Loading...