in reply to Getting a script's original command line
#!/usr/local/bin/perl print "Command: $0 @ARGV\n"; open(P, "echo hi |echo @ARGV |cat @ARGV|"); while (<P>) { print $_ } [download]