Ethen has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: How to replace the command line with Perl?
by marto (Cardinal) on Jan 10, 2008 at 11:16 UTC
Re: How to replace the command line with Perl?
by Corion (Patriarch) on Jan 10, 2008 at 11:07 UTC

    As you don't tell us anything about the environment, especially what the significance of "Srvrmgr>" at the start of your "command" is supposed to be, it's rather hard for us to guess at what you actually want. I suggest that you tell us more about your environment and the problem you're trying to solve.

Re: How to replace the command line with Perl?
by cdarke (Prior) on Jan 10, 2008 at 13:33 UTC
    I will be foolish and guess that 'Srvmgr>' is a prompt generated by a program called Srvmgr, and that it reads the command-line from STDIN.
    # Run Srvmgr in a pipe open (SRVMGR, "|Srvmgr.exe") || die "Can't run Srvmgr:$!"; print SRVMGR 'Run Task for comp ProcMgr server sieb04_env# with proce +ssName="Project Deployment", RowId=”Captured Session Id”',"\n"; close SRVMGR;

    Is that what you are looking for?
Re: How to replace the command line with Perl?
by DrHyde (Prior) on Jan 10, 2008 at 11:29 UTC
    People might be able to help if you were to give just a teeny-tiny clue as to what this is meant to do and in what environment. Also let us know what you've tried and how the results differed from what you expected and from what you wanted.