if you re running in a Linux environment and want a script to collect the results of running a command (or commands) why bother with a terminal at all? Something like this should work (weak example):
#!/usr/bin/perl -w use strict; my $cmd=qq@ date who ps -ef netstat -i ifconfig -a ) | @; open CMD, $cmd or die $cmd . ":$!"; my @lines=<CMD>; # slurp! close CMD; chomp @lines; # do something here.
In reply to Re: different terminal
by blue_cowdawg
in thread different terminal
by ivanradix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |