The script returns "Bad file descriptor", not the hostname. This seems to be the case anytime I use backticks to run any system command (such as date). Ideas on what I'm doing wrong? Thanks!#!/usr/bin/perl -w $hostname = `hostname`; if ($!) { print "found error of: $!\n"; } else { print $hostname }
In reply to Bad file descriptor when using backticks? by ApacheMan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |