AnjuShan has asked for the wisdom of the Perl Monks concerning the following question:
I am using active perl v5.10.1 in win 2008 OS. I shared a directory in Linux PC using nfs share facility and trying to mount/net use that in Win 2008.
If I use 'net use' command from command line it is working perfectly. The same command if I execute it from a perl script,
it gives error as "Network Path not found". I tried to use backquotes, qx etc... But nothing worked out.
I tried to use 'mount' command which is newly available in win 2008. It works fine in command line but not from perl script.
The mount.exe is present in System32 dir and that path is present in environmental variable also. I even tried to give full path.
I am getting the error "'C:\Windows\System32\mount.exe' is not recognized as an internal or external command". This seems strange for me.
Won't that new features in Win 2008 work in Active perl? Or am I missing something here?
Your help is very much appreciated.
my $cmd = "net use Q: 137.201.176.204:/share"; #my $cmd = "net use Q: \\\\137.201.176.204\\share" system($cmd); $cmd = "C:\\Windows\\System32\\mount.exe -u:root -p:root123 \\\\137.20 +1.176.204\\share Y:" system($cmd);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: system() in Windows 2008
by ikegami (Patriarch) on Jun 08, 2010 at 23:13 UTC | |
|
Re: system() in Windows 2008
by Argel (Prior) on Jun 09, 2010 at 00:46 UTC | |
by AnjuShan (Initiate) on Jun 09, 2010 at 05:47 UTC | |
by Argel (Prior) on Jun 09, 2010 at 18:32 UTC | |
|
Re: system() in Windows 2008
by Anonymous Monk on Jun 08, 2010 at 23:12 UTC | |
|
Re: system() in Windows 2008
by wwe (Friar) on Jun 09, 2010 at 17:20 UTC |