Hi Frank

 

Yes, even without some major programming work.

 

Check "winexe" which runs on Linux and executes commands on Win.

AFAIR it is part of the Samba 4.x implementation or a part of another project based on it.

It works very well.

 

We are using it to stop/start the Zabbix agent which monitors the server and can execute

commands, e.g. to restart the "Print Spooler" but it is not able to restart itself.

 

Hope this helps !

 

Kind regards

 

Norbert.

 

From: Frank Terhaar-Yonkers [mailto:fty@employees.org]
Sent: Saturday, June 16, 2012 4:38 PM
To: Beaumont, Kevin
Cc: rdesktop-users@lists.sourceforge.net
Subject: Re: [rdesktop-users] get windows script return

 


Yes, if you want to do some work.  Learn how to program sockets.  Have a listener on the machine you launch rdesktop from.  Have the command on the remote send it's output to a sender (you might be able to script the telnet command).  Google for basic tutorials in TCP/IP.  There are tons of examples in a variety of scripting and programming languages.  Expect is a scripting language that could drive things like telnet.

Sent from a compassionate human.

On 6/16/12 9:57 AM, Beaumont, Kevin wrote:

No. 
 
Sent from my iPad
 
On 16 Jun 2012, at 14:05, "Frederico" <frede.sch@gmail.com> wrote:
 
Hi guys,
 
As you know we have the -s argument that we send some stuffs and rdesktop will open a shell and execute them. I would like to know if is possible to get the response of the executed commands on my client that is connecting to my windows server. It sounds like a telnet and yes, that's why I need. Is such a thing possible?
 
-- 
Thanks,
Frederico Schardong,
Linux registered user #500582
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rdesktop-users mailing list
rdesktop-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdesktop-users
**********************************************************************************************************
The information contained in this e-mail is private and confidential, may
be legally privileged and/or protected by law and it is intended only for
the use of the addressee.
Any liability (in negligence or otherwise) arising from any third party
taking any action or refraining from taking any action on any of the
information contained in this e-mail is hereby excluded. If you are not
the intended recipient please notify the sender immediately.
Do not disclose the contents to any other person store or copy the
information in any medium or use it for any purpose whatsoever.
Copyright in this e-mail and any attachment created by us belongs to this
company and we assert the right to be identified as such and object to any 
misuse.
 
Princes Limited (No.2328824) Registered in England.
Registered office at Royal Liver Building, Pier Head,Liverpool L3 1NX.
Edible Oils Limited (No.5309847) Registered in England.
Registered office at Royal Liver Building, Pier Head,Liverpool L3 1NX.
**********************************************************************************************************
 
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rdesktop-users mailing list
rdesktop-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdesktop-users
 

 

-- 
 \\\\////\\\\////\\\\\////\\\\\////\\\\////\\\\////
 Frank Terhaar-Yonkers
 Apex, NC