execute .ksh from windows


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users execute .ksh from windows
# 8  
Old 08-05-2005
download putty and use telnet from windows to connect to the sun box

telnet is usually installed on unix systems although for security reasons it's disabled sometimes
# 9  
Old 08-05-2005
Quote:
Originally Posted by rein
download putty and use telnet from windows to connect to the sun box

telnet is usually installed on unix systems although for security reasons it's disabled sometimes
Putty does have command line ssh available, so thats a good idea. But I would say don't telnet into the sun box. Do this instead.

1. Download Putty for windows (make sure to also get the ssh command line interface)
2. Install OpenSSH on the Sun box. Get it from www.sunfreeware.com
3. Open the Putty ssh command line interface in Windows and run the command listed earlier in the thread.
# 10  
Old 06-15-2006
can i do this from a batch file in window

ie run ksh script on unix from a batch file in windows???
# 11  
Old 06-15-2006
It may sound stupid, but if you want to use ssh to execute it, why not copy the script using scp/rcp to Solaris machine first and execute it with ssh/rsh. What is the script doing? Does it have any thing specific to Windows..

However, you can defintely call scripts located on Unix machine from a batch file on windows using rsh/ssh. You have to have cygwin installed or MKS toolkit. But your actual script has to be on Unix machine



Quote:
Originally Posted by sjumma
can i do this from a batch file in window

ie run ksh script on unix from a batch file in windows???
# 12  
Old 06-16-2006
CPU & Memory

I have to do on different machine some of which i dont have rights to so i will pass out to other people to change password etc through a batch file

it has 2 parts first i do ftp

from a batch files

1) ftp -i -s:c:\vicpurge.txt 10.0.0.27 ( vicpurge is a txt file contain alphnumeric numbers that changes every month

2) part i want to call putty command line from the same batch file and do the following

telnet 10.0.0.27
username
password
cd /raid

ksh
for i in $(cat Vidpurge.txt)
do
rm $i
done
quit


i dont know how the second part will work
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute a shell script in UNIX m/c from win 7 using ksh

I need to run a shell script on unix machine from windows 7. I used the "RSH" command in win XP successfully for this, But on win 7 it is not working. Can any body tell me how to run RSH on win 7 or any other command for similar use. I use the command as below rsh <unix m/c> -l <username>... (1 Reply)
Discussion started by: arup1980
1 Replies

2. Shell Programming and Scripting

ksh script to execute 2 variabless in universe enviroment

Hello, Im trying to write a ksh script that will enter the universe environment as user kourier (switching to this specific user automatically launches to the TCL prompt). At the TCL " > " prompt i want to execute two variables. However, it wont recognize the second variable (user input Answer) due... (6 Replies)
Discussion started by: seekryts15
6 Replies

3. Shell Programming and Scripting

How to execute .sh file on Windows?

How to execute .sh file on Windows? (2 Replies)
Discussion started by: arunaakella
2 Replies

4. Windows & DOS: Issues & Discussions

Windows remote to Solaris to execute ksh script

Hi all, I'm not sure if it is correct to post here. I am facing problem wanting to create a batch that run from my Windows XP pc to remote to multiple Solaris server to execute the server's ksh script. :wall: Can anyone give me a hints on how to do that? Thanks. (6 Replies)
Discussion started by: beginningDBA
6 Replies

5. Solaris

ksh scripts failing with cannot execute error

Hi, All the scripts placed in /home/bin had 755 permissions. Sometimes scripts are failing with cannot execute errors. Let me describe a simple scenario. MasterScript.sh had 755 permissions. It is success most of the times. But, sometimes failing with cannot execute error. Really... (1 Reply)
Discussion started by: sureng
1 Replies

6. Shell Programming and Scripting

How can I execute another shell from my ksh script?

I am newbie in UNIX, so please excuse me for the stupid question.:) Here is a problem: I created ksh script where the part of the functionality include an opening of a second session with another shell process "runrep"(runrep is a custom reporting shell designed by Advent Geneva). When I run my... (3 Replies)
Discussion started by: alexstar
3 Replies

7. Shell Programming and Scripting

Time taken to execute a ksh

Hi, I am executing a ksh. I want to note the time taken to execute each command that are executed in the ksh and write it in a log file. Also I want to note the total time taken to execute the ksh. How can I do that?What is the command to do that? (2 Replies)
Discussion started by: Kishore_1
2 Replies

8. Shell Programming and Scripting

ksh execute command containing double quotes

How do I execute a command containing a double quote ? I pass a variable to grep that contains spaces, so I need to quote it, but it does not work. #!/usr/bin/ksh set -x txt='"next to"' cmd="grep $txt ~dpearso5/file2" echo $cmd $cmd This is the error I get: + grep "next to"... (1 Reply)
Discussion started by: pearson05
1 Replies

9. Shell Programming and Scripting

How can I execute own ksh function in find -exec

Hi, I wrote a smiple ksh function send_notification() { ... } and want to execute it on each file, matched by the find command. I tried: find / -name "*.err" -mtime -8 -exec send_notification {} \; but it doesn't work. What should I do? I work in ksh on Hp-Ux. Regards, Pit (11 Replies)
Discussion started by: piooooter
11 Replies

10. UNIX for Dummies Questions & Answers

How to execute a shell script from Windows

I like to start a korn job remotely, from windows. I tried REXEC and that is not what I want. Need help !!!! thanks (4 Replies)
Discussion started by: kyawlin
4 Replies
Login or Register to Ask a Question