|
|
| shamika 2006-07-19, 1:40 pm |
| I have to run this script on a remote Linux host using a batch file in
windows .....
I have to do this daily and would like to automate the process ....i
have been using telnet to connect and runnin the script everyday
manually......Is it possible to have a batch file on which i can double
click on my desktop and it would do everything for me ??
Can some one advice me on how to write the batch file .....
the batch file should have :
1. command to connect to the remote linux host
2. command to run a particular script on the linux host
Also is it possible to automate the login process ??
| |
| Bit Twister 2006-07-19, 1:40 pm |
| On 19 Jul 2006 07:37:17 -0700, shamika wrote:
> I have to run this script on a remote Linux host using a batch file in
> windows .....
> I have to do this daily and would like to automate the process ....i
> have been using telnet to connect and runnin the script everyday
Telnet is insecure in that data is passed as clear text. You might
consider having the sshd daemon/service running on linux and use an
ssh client to connect.
> manually......Is it possible to have a batch file on which i can double
> click on my desktop and it would do everything for me ??
Sounds like a windows news group scripting question.
You can have your batch script on linux run daily for you using cron or at .
| |
| Dave Hinz 2006-07-19, 1:40 pm |
| On 19 Jul 2006 07:37:17 -0700, shamika <shamika.lavekar@gmail.com> wrote:
> I have to run this script on a remote Linux host using a batch file in
> windows .....
Hi. If you use better subject lines people are less likely to assume
your post isn't worth reading.
First question is - why would you do it this way? You could just use
cron on the linux box and eliminate the whole Windows/Batch/scheduling
thing.
> I have to do this daily and would like to automate the process ....i
> have been using telnet to connect and runnin the script everyday
> manually......Is it possible to have a batch file on which i can double
> click on my desktop and it would do everything for me ??
> Can some one advice me on how to write the batch file .....
> the batch file should have :
> 1. command to connect to the remote linux host
> 2. command to run a particular script on the linux host
> Also is it possible to automate the login process ??
All of these things are likely possible but again, would we be helping
you solve the problem in the wrong way? Linux can handle the scheduling
itself without adding external dependancies on your desktop system.
Would that work for what you're trying to do?
| |
| Theo v. Werkhoven 2006-07-19, 7:25 pm |
| The carbonbased lifeform shamika inspired comp.unix.admin with:
> I have to run this script on a remote Linux host using a batch file in
> windows .....
> I have to do this daily and would like to automate the process ....i
> have been using telnet to connect and runnin the script everyday
> manually......Is it possible to have a batch file on which i can double
> click on my desktop and it would do everything for me ??
> Can some one advice me on how to write the batch file .....
> the batch file should have :
> 1. command to connect to the remote linux host
> 2. command to run a particular script on the linux host
>
> Also is it possible to automate the login process ??
Have a look at Expect.
http://expect.nist.gov/#windows
Theo
--
theo at van-werkhoven.nl ICQ:277217131 SuSE Linux
linuxcounter.org: 99872 Jabber:muadib at jabber.xs4all.nl AMD XP3000+ 1024MB
"ik _heb_ niets tegen Microsoft, ik heb iets tegen
de uitwassen *van* Microsoft"
|
|
|
|