If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > log from window run a script and get output on window

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-28-04, 12:34
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
Arrow log from window run a script and get output on window

how to log on to unix from a batch file (window) and run a script
then get the output to file and transfer file to window maching

here is how partly
telnet servername
username
password
cd /usr/viis/name
./myscript
open ftp
get outputfile.bat
bye
exit

But it stips at username on unix server any help
__________________
bigfoots
Reply With Quote
  #2 (permalink)  
Old 10-29-04, 04:27
Damian Ibbotson Damian Ibbotson is offline
Padawan
 
Join Date: Jun 2002
Location: UK
Posts: 525
I'm lazy, so I would usually have an ftp script and call it from a bat file, something like...

ftpIt.bat
-------
ftp -s:ftpScript.txt

ftpScript.txt
------------
open yourRemoteServerName
user
password
cd /your/remote/directory
prompt
get yourRemoteFile
quit
Reply With Quote
  #3 (permalink)  
Old 10-29-04, 09:01
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
How do i run a script on unix server itself (myscript)

beside doing ftp and getting the output of that file (myscript)

Your answer will just get the file via ftp

I also have to run a script on unix box ???


thanks
__________________
bigfoots
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On