Mac has asked for the wisdom of the Perl Monks concerning the following question:
$blah returns nothing. The dump runs fine, but the output from the dump does not fill $blah. whereas I do a:$prog = "/usr/sbin/ufsdump"; # dump program $level = "0uf"; # level of dump $part = "/webdocs"; #partition to dump $dev = "/dev/rmt/0un"; #device to dump to $blah = `$prog $level $dev $part`;
@ls will contain all lines returned by ls -la!@ls = `ls -la`;
but alas, still no luck. Is there a better way to do it?@blah = `$prog $level $dev $part`;
Edit kudra, 2002-01-10 Replaced BR with CODE
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: System Calls with backticks
by cat2014 (Monk) on Jan 07, 2002 at 08:35 UTC | |
|
Re: System Calls with backticks
by MZSanford (Curate) on Jan 07, 2002 at 14:35 UTC | |
by kal (Hermit) on Jan 07, 2002 at 16:02 UTC | |
|
Re: System Calls with backticks
by Juerd (Abbot) on Jan 07, 2002 at 14:24 UTC | |
|
Re: System Calls with backticks
by jlongino (Parson) on Jan 07, 2002 at 10:11 UTC |