On 8/20/02 12:30 PM, "ellem" <[EMAIL PROTECTED]> wrote: > Here's the code: > > mrsparkle ellem ~/code $ more mnt.pl > #! /usr/bin/perl > use warnings ; > > $mount = `mount -t smbfs //homer/root /Volumes/homer` or die "Cannot > mount; $!"
This code is not right. Backticks returns the output (sent by mount to stdout), not an error code. Looks like mount doesn't output anything, thus you die. Either check the error $! explicitly or use system() instead of backticks. Cheers, Rob ............................................................................. Robert S. Mah [EMAIL PROTECTED] 212-947-6507
