in reply to Re^2: System Command Issues
in thread System Command Issues
That sounds to me like a bad e-mail address. If the e-mail address was given in a double-quoted string, did you escape (i.e. backslash) the @? (If not, in addition to doing that, you should be running this under strict, because under strict an unescaped @ in a double-quoted string would have most likely caused the compilation to fail, thereby alerting you to the problem; it's a good thing to do in general.) And, as ikegami noted, what are the strings in $Version and $ID?
BTW, I tried a similar short script, and it worked fine; this is what I ran:
use strict; use warnings; my $address = 'myaddress@myhost.com'; my $subject = 'nothing'; system( "mail $address -s $subject < random.txt" ) == 0 or die "mail failed: $?";
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: System Command Issues
by blanket (Initiate) on Jun 09, 2005 at 14:02 UTC | |
by tlm (Prior) on Jun 09, 2005 at 14:27 UTC | |
by blanket (Initiate) on Jun 09, 2005 at 14:59 UTC | |
by blanket (Initiate) on Jun 09, 2005 at 15:32 UTC |