All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
exec windows cmd (in nfs mount) from unix
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
exec windows cmd (in nfs mount) from unix - Aug. 30, '06, 8:43:16 PM
|
|
|
soundwreck
Posts: 3
Joined: Aug. 30, '06,
Status: offline
|
I have created an nfs share on my windows xp system and within this share, I have a windows executable. For a simple example, I am using pscp.exe, the PuTTY secure copy command. From a windows command line or from the Interix C Shell, I am able to run the command no problem. However, when I enter the mounted directory on my solaris 8 system, I get the following error:
> ./pscp.exe
./pscp.exe: MZ\220^C^D....garbage...: not found
./pscp.exe: syntax error at line 2: ...more garbage... unexpected
I get the same error regardless of whether or not I prefix with './'. I realize that there are issues with running windows progs in a unix environment, however, pscp is a standalone program with no other dependencies. Eventually I'd like to do something much more complicated that this, but wanted to start out with something simple first.
|
|
|
RE: exec windows cmd (in nfs mount) from unix - Aug. 30, '06, 10:21:04 PM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
You're trying to run a Win32 binary on Solaris?
|
|
|
RE: exec windows cmd (in nfs mount) from unix - Aug. 31, '06, 11:26:07 AM
|
|
|
soundwreck
Posts: 3
Joined: Aug. 30, '06,
Status: offline
|
What I need to do is have a unix script call a win32 binary on a remote machine, run that binary, and then have the unix script grab the output file that results from execution of the binary and finish processing.
Is it not logical to do this via an nfs mount? This is easier than ssh-ing in, but if it's not possible, I need to know that.
Obviously pscp.exe isn't going to be creating any output files, but the command I will need to run, will be doing this.
So the answer to your question is really yes and no. I need to execute it from the unix side, but I would expect that the process would actually run in the windows environment.
Hopefully that makes sense.
|
|
|
RE: exec windows cmd (in nfs mount) from unix - Aug. 31, '06, 2:34:31 PM
|
|
|
markfunk
Posts: 670
Joined: Mar. 31, '03,
Status: offline
|
mounting a file system just allows you access to the remote files.
It does not give you access to the remote execution environment.
In your case, the NFS mount to a Windows filesystem just gives
you access to the files located on the Windows box.
To run a Windows binary on the remote Windows box, you must
actually log into to Windows box (via ssh or rsh) and then
from that login shell, you can run Windows commands.
|
|
|
RE: exec windows cmd (in nfs mount) from unix - Aug. 31, '06, 2:39:17 PM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
No, NFS is for sharing the actual files.
When you are on the Solaris box and execute a file that is mounted NFS it runs
on the Solaris box -- not on the machine that the binary actually lives on.
So you need to do it by ssh'ing or rsh'ing.
|
|
|
RE: exec windows cmd (in nfs mount) from unix - Aug. 31, '06, 3:05:45 PM
|
|
|
soundwreck
Posts: 3
Joined: Aug. 30, '06,
Status: offline
|
Okay, that's unfortunate, but I thank you for the clarifications. Doing this via openssh for windows was my second option anyhow.
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|