[Israel.pm] system() platform dependant issue

Levenglick Dov-RM07994 dovl at freescale.com
Tue Sep 5 03:52:46 PDT 2006


Hi,
This runs very nicely on Linux but returns "sh: /dev/null: bad number"
on Solaris. Can anyone explain?
Can anyone give me a robust solution that will run on all shells on all
platforms?

#!/usr/local/bin/perl

$cmd = 'echo blaaaa >& /dev/null';
system("$cmd");

 
 
Best Regards,
Dov Levenglick
DSP SoC System and Applications Engineer,
Network and Computing Systems Group
Freescale Semiconductor Israel
Tel. +972-9-952-2804
The information contained in this email is classified as:
[x] Freescale General Business Information
[ ] Freescale Internal Use Only
[ ] Freescale Confidential Proprietary
[ ] Personal Memorandum




More information about the Perl mailing list