Running windows command from Unix | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Running windows command from Unix

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-07-2005
Sabari Nath S Sabari Nath S is offline
Registered User
 
Join Date: Jul 2005
Last Activity: 3 June 2011, 5:49 PM EDT
Location: Chennai
Posts: 53
Thanks: 0
Thanked 1 Time in 1 Post
Running windows command from Unix

Hi,

Is there any way to invoke a Windows command from Unix ??

For eg: I want to track down a user executing a script and want to send him a message through net send in windows ..

I am able to get the user machines ip ... and since I want my message to be popped up in users screen, wud like to invoke windows net send from shell script .... Is there any way to do this ??

Please help ...

Thanks in advance,

SNS
Sponsored Links
    #2  
Old 09-07-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
 
Join Date: Dec 2003
Last Activity: 13 May 2013, 9:02 AM EDT
Location: Melbourne, Australia
Posts: 2,185
Thanks: 3
Thanked 24 Times in 23 Posts
As long as you're using SAMBA

smbclient -M ip_address

Then you can type your message and terminate with Ctrl-D (like wall).

Cheers
ZB
Sponsored Links
    #3  
Old 09-07-2005
Sabari Nath S Sabari Nath S is offline
Registered User
 
Join Date: Jul 2005
Last Activity: 3 June 2011, 5:49 PM EDT
Location: Chennai
Posts: 53
Thanks: 0
Thanked 1 Time in 1 Post
Hi,

But we dont have SAMBA in our system and so no way to use smbclient ... any other way around ?? Any help appreciated ....

Also my humble aplologies for my duplicate post ....

Thanks,

SNS
    #4  
Old 09-16-2005
parola parola is offline
Registered User
 
Join Date: Aug 2005
Last Activity: 5 December 2005, 5:51 AM EST
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
what's u have ??
- Unix
- What's mapping u use ????
- Windows

Last edited by parola; 09-16-2005 at 10:25 AM..
Sponsored Links
    #5  
Old 09-16-2005
tmarikle tmarikle is offline Forum Advisor  
Registered User
 
Join Date: Jan 2005
Last Activity: 27 September 2011, 12:36 PM EDT
Posts: 683
Thanks: 0
Thanked 4 Times in 4 Posts
Quote:
Originally Posted by Sabari Nath S
Hi,
But we dont have SAMBA in our system and so no way to use smbclient ... any other way around ?? Any help appreciated ....
Remote shells or client application code that perhaps polls the Unix server for messages / events.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Running unix command from windows? How? haroon_a AIX 4 11-03-2009 12:30 PM
Running UNIX in windows environment ? bh_hensem Windows & DOS: Issues & Discussions 1 05-10-2007 07:25 PM
Running UNIX commands remotely in Windows box from Unix box avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 05:24 AM
Running windows command from Unix Sabari Nath S UNIX for Advanced & Expert Users 1 09-07-2005 03:33 AM
Running a UNIX command from Windows robbiegregg UNIX for Dummies Questions & Answers 2 03-20-2005 11:51 AM



All times are GMT -4. The time now is 10:29 AM.