System command

From: Varun Jindal (varunjindal_at_yahoo.com)
Date: 11/30/04


Date: 30 Nov 2004 02:30:00 -0800

hello,

i am using a unix shell command within my perl script using system
command.

lets say, i want to know what is hte system time (it is just an
example).

so i use the system command, but i want to put the output of the
command in a variable in the perl script.
how do i do it.

thanks in advance,

--Varun.



Relevant Pages

  • RE: setting unix command through perl script
    ... setting unix command through perl script ... it changes the environment of the shell you ... If I run this command on bash prompt then it is executing properly but ...
    (perl.beginners)
  • RE: setting unix command through perl script
    ... I have run the command like this.... ... setting unix command through perl script ... shell you spawn with qx; but after this statement your shell ... To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx ...
    (perl.beginners)
  • RE: setting unix command through perl script
    ... setting unix command through perl script ... Agreed that the parent process in which perl was invoked will not ... To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx ...
    (perl.beginners)
  • Re: Update message on web page while processing
    ... One of the simplest solutions for this is to have the web application ... The command line application, in this situation, could write a simple ... some years ago for live reports that took 10 minutes or so to complete. ... The web application fired off a PERL script that did the processing, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: CGI script: release browser after spawning new process
    ... > filled form and pass them along as command line parameters to another ... > perl script that should run the computation in the background. ... You have to close STDOUT and STDERR, ... You need a fork to protect from this. ...
    (comp.lang.perl.misc)