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

solved, unix and windows applications, user access

Thread Tools Search this Thread Display Modes
Old Unix and Linux 08-03-2015   -   Original Discussion by Chi_SL
agent.kgb's Unix or Linux Image
agent.kgb agent.kgb is offline
Registered User
Join Date: Feb 2015
Last Activity: 17 January 2018, 1:46 PM EST
Location: basement, Lubyanka, Moscow
Posts: 340
Thanks: 8
Thanked 98 Times in 87 Posts
Press F1 and read the manual.

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
Old Unix and Linux 08-07-2015   -   Original Discussion by Chi_SL
Chi_SL's Unix or Linux Image
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

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

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 01:57 PM.