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; $!"
;

print "Mounted!" ;

Here's the unexpected output:

mrsparkle ellem ~/code $ sudo perl mnt.pl
Name "main::mount" used only once: possible typo at mnt.pl line 4.
Workgroup/Domain:
Password:
Cannot mount;  at mnt.pl line 4.
mrsparkle ellem ~/code $ ls /Volumes/homer/
AUTOEXEC.BAT        DETLOG.TXT          MSINPUT.INI         SYSTEM.1ST
AUTOEXEC.DOS        Danny               My Documents        Saves
AUTOEXEC.SMO        Dell                My Music            Skal 
Attend.doc
AUTOEXEC.SYD        EPSON               NEC                 VIRUS
Agent               FRUNLOG.TXT         NECPRINT            WAR2
Apple               Game_stuff          NECSSFW             WINDOWS
Art                 HASBRO              NETLOG.TXT          _NavCClt.Log
AtomTime            IO.SYS              Palm                cygwin
BOOTLOG.PRV         KODAK_Pictures      Perl                flergen
BOOTLOG.TXT         Kodak Picture CD    PowerTab            hegames
BackUp              LOGO.SYS            Program Files       logfile.txt
COMMAND.COM         LSANS.TTF           QUICKENW            mail
CONFIG.DOS          LSANS.fot           RECYCLED            
marzconsulting
CONFIG.SYD          Lotus               RESUME              resumepl.rtf
CONFIG.SYS          Lou                 SBWIZARD            tweakui
Civilization3.Ini   Lynda               SCANDISK.LOG
Code                MSDOS.---           SETUPXLG.TXT
DETLOG.OLD          MSDOS.SYS           SUHDLOG.DAT


Note it DOES mount the file system!
--
Lou Moran
http://ellem.dyn.dhs.org:5281/resume/lmoran2002.html

Reply via email to