runnig script from window machine


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers runnig script from window machine
# 1  
Old 06-15-2006
CPU & Memory runnig script from window machine

i want to run a script from window machine the script is


ksh
for i in $(cat some.txt)
do
rm $i
done
exit

i have it saved as a file say progremove & made it chmod 7777

how do i run this script from a window machine vie a batch file

telnet -l username servername

then what ?????


or can i run this progremove from within a ftp session ????

Last edited by sjumma; 06-15-2006 at 04:10 PM..
# 2  
Old 06-19-2006
The simplest way sould be to put the script onto your UNIX server, telnet to it and run it, but if you are determined to run it from the DOS prompt then you could use rexec:
Code:
rexec UnixServerName -l UnixServerLogin ScriptName

rexec will prompt for a password before running the script.

You should be able to use rsh after setting up hosts.equiv and .rhosts - but I've never found it reliable and I don't like the security compromises.

cheers
# 3  
Old 06-21-2006
i will surely try out this
thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to run Klocwork from Machine 1 to machine 2

I use Ubuntu 10.04 in 2 virtual machines. In one machine I have installed Hudson and another machine is to run klocwork. Scenario is when I trigger a build in Hudson, the script has to run successful and call the Klocwork in VM2. In the build script I have given the following command to call... (1 Reply)
Discussion started by: bsreeram
1 Replies

2. Shell Programming and Scripting

How to transfer files from unix machine to local machine using shell script?

Hi All.. Am new to Unix!! Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp). And also i have to transfer the input file from the local directory to Unix machine (Server) Any help from you... (1 Reply)
Discussion started by: vidhyaS
1 Replies

3. Shell Programming and Scripting

shell script to copy files frm a linux machine to a windows machine using SCP

I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine. for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Discussion started by: nithin6034
3 Replies

4. Solaris

Cause a window to pop-up on a machine remotely

While a search of the forums reveals a great deal of help for some one who wants to run a program on their Solaris box and have it display on their workstation I have a slightly different problem. I want to login via SSH and start a program that will display on the console of the machine I just... (5 Replies)
Discussion started by: saldon
5 Replies

5. Shell Programming and Scripting

How to execute a script hosted on a machine from a different machine

Hi everyone I intend to trigger a script from one machine say mc1 that actually excutes on different machine say mc2 and redirect the logs to that machine mc2. I tried to use nohup <nfs location of machine >/script.sh > <nfs location of machine >/script.log 2>&1 & nfs location of... (2 Replies)
Discussion started by: harneetmakol
2 Replies

6. Solaris

strange problem regarding zip/unzip from window to solaris machine

Hi , I faced a very strange problem when I unzip a zip file on my solaris workstation. Actually I wanted to transfer a folder, say it TEST which contains some sub-folders inside it from windows to solaris machine. So I zipped this folder to TEST.ZIP on my windows machine. Then from my... (11 Replies)
Discussion started by: Raj Kumar Arora
11 Replies

7. Shell Programming and Scripting

how to transfer a file from unix to window machine

I want to ftp some of the unix files to my local PC through unix shell script. I want that script should be run from unix. when i tried by using scp, came to know that connection refused (3 Replies)
Discussion started by: balireddy_77
3 Replies

8. UNIX for Advanced & Expert Users

how can I copy a file from unix to window machine?

how can I copy a file from unix to window machine (and vice versa), if ftp is not available? please tell me what else is convenient? Thanks! (6 Replies)
Discussion started by: fredao
6 Replies

9. UNIX for Dummies Questions & Answers

Runnig Remote Shell

Please I need your help. I want to run remotely a unix shell that run a java process, from a Visual Basic Client. Thanks mac33 :) (4 Replies)
Discussion started by: mac33
4 Replies

10. UNIX for Dummies Questions & Answers

HP 9000 runnig Unix

I have aquired the dutties of looking after our MRP system We have a HP 9000D running Unix With MINX as tha MRP system Our last IT System adim. had crashed the system before he left and sense then we have not been able to log on to the system at the console or remotely. tha error reads minx... (6 Replies)
Discussion started by: bstrin
6 Replies
Login or Register to Ask a Question