Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a bother thing, I try my best to find answer for a whole day to solve it.
My demand like thing, I want to call a xterm to execute the "ls" command. I find monks have follow idea:
my $pid= fork(); unless($pid){ exec "xterm -e "ls > log"; }
but our xterm is a special command that it use "-e" alreay, that is say we can't use the method above(exec "xterm -e "ls > log";)
.1.I want to use pipe, socket, background process and so on to realize it, but I have no idea.
2.for this case, mustn't the xterm called pop up, and it must run as ground process?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I want to call a special xterm to execute "ls" command in a perl script
by derby (Abbot) on Aug 21, 2013 at 14:58 UTC | |
by sincerchan (Initiate) on Aug 22, 2013 at 04:58 UTC | |
by Anonymous Monk on Aug 22, 2013 at 06:52 UTC | |
by sincerchan (Initiate) on Aug 22, 2013 at 08:43 UTC | |
by aitap (Curate) on Aug 23, 2013 at 07:22 UTC |