hi
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > hi




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    hi  
shamika


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-19-06 06: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 ??






[ Post a follow-up to this message ]



    Re: hi  
Bit Twister


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-19-06 06: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 .





[ Post a follow-up to this message ]



    Re: hi  
Dave Hinz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-19-06 06: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?






[ Post a follow-up to this message ]



    Re: hi  
Theo v. Werkhoven


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-20-06 12:25 AM

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+ 1024
MB
"ik _heb_ niets tegen Microsoft, ik heb iets tegen
de uitwassen *van* Microsoft"





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:38 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register