LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-14-2007, 07:29 AM   #1
Unclesmiff
LQ Newbie
 
Registered: Feb 2007
Posts: 17

Rep: Reputation: 0
windows command from linux


Is it possible to execute an arbitrary command on windows from linux?

i've tried rpcclient but this seems to be limited to a set of calls.

all I want to do is call the windows ntbackup command.
 
Old 11-14-2007, 08:00 AM   #2
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Without launching your windows installation inside a virtualisation layer, I'd say this is not possible. This page might interest you. You could also look at wine for running Windows programs from inside Linux, but programs run through won't affect any Windows install you have.
 
Old 11-14-2007, 11:46 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,973
Blog Entries: 11

Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
Quote:
Originally Posted by Unclesmiff View Post
Is it possible to execute an arbitrary command on windows from linux?

i've tried rpcclient but this seems to be limited to a set of calls.

all I want to do is call the windows ntbackup command.
You're not very clear as to what you're trying to achieve.
Is this about a dual-boot machine? Or do you want to get a
second, networked windows-box to do stuff?

And what does ntbackup do?


Cheers,
Tink
 
Old 11-14-2007, 04:41 PM   #4
Unclesmiff
LQ Newbie
 
Registered: Feb 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
You're not very clear as to what you're trying to achieve.
Is this about a dual-boot machine? Or do you want to get a
second, networked windows-box to do stuff?

And what does ntbackup do?

Cheers,
Tink
There are two seperate machines, connected by a LAN.

From the Linux machine, I want to execute a program on the Windows machine.

The program is a DOS executable. It could be "dir" "ntbackup" or anything else.
 
Old 11-14-2007, 05:21 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,973
Blog Entries: 11

Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
Quote:
Originally Posted by Unclesmiff View Post
There are two seperate machines, connected by a LAN.

From the Linux machine, I want to execute a program on the Windows machine.

The program is a DOS executable. It could be "dir" "ntbackup" or anything else.
OK ... this may be difficult to say the least. I'd suggest
trying (not that I ever have) getting the rpclient tool to
run under wine and/or cross-over office. If that doesn't work
try a VM (Qemu, vmplayer, ...) with windows in it.

And there's a project http://www.samba-tng.org/ of which I don't
know how well it works, but it hasn't been updated in a year.
It does mention RPCs, so it just may do what you're asking.

And since I don't know whether you want to do this on a
regular basis (or ad-hoc): did you consider the windows scheduler
for the ntbackup?

[edit]
I just realised that the *normal* samba also comes with an
rpcclient - I just don't have anything to test it against :}
[/edit]


Cheers,
Tink

Last edited by Tinkster; 11-14-2007 at 05:40 PM. Reason: [edit]
 
Old 11-15-2007, 03:39 AM   #6
Unclesmiff
LQ Newbie
 
Registered: Feb 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
[edit]
I just realised that the *normal* samba also comes with an
rpcclient - I just don't have anything to test it against :}
[/edit]
Cheers,
Tink
yea, thx - i did know - it's limited. if i find a solution i'll post it.
 
Old 11-15-2007, 06:25 AM   #7
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,403

Rep: Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829
Not quite what you are thinking of, but another possibility is to install a VNC client on the Windows machine. You could then access the Windows machine via a browser on your Linux box, controlling it as if you were sitting in front of the Windows machine.
 
Old 11-15-2007, 06:55 AM   #8
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Another possibility would be to install an ssh server on the Windows machine, for example via cygwin. I'm kind of surprised that there isn't a Windows remote desktop client available under Linux, if such a program existed that would be another way of doing what you want.
 
Old 11-15-2007, 01:10 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,973
Blog Entries: 11

Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
Quote:
Originally Posted by Unclesmiff View Post
yea, thx - i did know - it's limited. if i find a solution i'll post it.
I'm curious - what are the limitations?

And would you consider testing samba-ng?


Cheers,
Tink
 
Old 11-16-2007, 03:17 AM   #10
Unclesmiff
LQ Newbie
 
Registered: Feb 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Gethyn View Post
Another possibility would be to install an ssh server on the Windows machine, for example via cygwin. I'm kind of surprised that there isn't a Windows remote desktop client available under Linux, if such a program existed that would be another way of doing what you want.
I'm trying to avoid installing software on the windows machines.
 
  


Reply

Tags
rpc, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows command cls on Linux ? utw-mephisto Linux - General 10 12-02-2009 11:34 AM
c code from windows to linux - wich command? kotoko Linux - Newbie 2 10-09-2005 10:14 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
Linux is not visible after a Windows FIXMBR command ikhanr Linux - Newbie 6 10-23-2004 01:26 PM


All times are GMT -5. The time now is 09:24 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration