Unix/Linux Go Back    


Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here!

Method to run a shell script using shortcut key in keyboard with out logging to putty

Windows & DOS: Issues & Discussions


Tags
solved, unix and windows applications, user access

Closed    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 08-03-2015
agent.kgb agent.kgb is offline
Registered User
 
Join Date: Feb 2015
Last Activity: 22 January 2017, 4:29 PM EST
Location: basement, Lubyanka, Moscow
Posts: 323
Thanks: 8
Thanked 95 Times in 84 Posts
Press F1 and read the manual.

Quote:
Once you have set up Plink to be able to log in to a remote server without any interactive prompting (see section 7.2.2), you can use it for lots of scripting and batch purposes. For example, to start a backup on a remote machine, you might use a command like:
plink root@myserver /etc/backups/do-backup.sh Or perhaps you want to fetch all system log lines relating to a particular web area:
plink mysession grep /~fred/ /var/log/httpd/access.log > fredlog Any non-interactive command you could usefully run on the server command line, you can run in a batch file using Plink in this way.
Sponsored Links
    #9  
Old Unix and Linux 08-07-2015
Chi_SL Chi_SL is offline
Registered User
 
Join Date: Jul 2015
Last Activity: 7 August 2015, 1:49 AM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Daer All,

Thanks for the support you all given and I met my requirements. Did it using plink as you suggested.

followed this pattern


Code:
D:\plink.exe -load ns IP -l user-pw password /path to shell/shellname.sh


Last edited by rbatte1; 08-07-2015 at 06:54 AM..
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem with script invoked from a keyboard shortcut gencon Shell Programming and Scripting 0 07-12-2012 07:03 AM
Putty shortcut and ssh to another server question, possible in bash? newb1000 Shell Programming and Scripting 5 08-18-2011 06:02 PM
Copy entire line in bash (terminal) - keyboard shortcut c_lady OS X (Apple) 2 03-28-2011 03:59 AM



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