WC -Sx- Jones writes:
> This code will work:
> 
> $erc = `mount -t smbfs /home/root/Volumes/homer` / 256;
> die "caanot mount Homer"if ($erc);

Backticks return the output text, not the status code.

  system(qw(mount -t smbfc /home/root/Volumes/homer));
  die "homer unmountable" if $? >> 8;

Nat

Reply via email to