Remote execute a file via ftp


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Remote execute a file via ftp
# 1  
Old 01-07-2003
Remote execute a file via ftp

How can I execute a script on a unix server via ftp from a Windows machine?? Can't use cron/at to schedule the execution and don't want to open up a telnet session just to do it. I want to be able to kick it off after I send the script over on a nightly basis. Reason is script parameter changes nightly and is created on windows side.

Any ideas? Is this even possible?

Thanks.
# 2  
Old 01-07-2003
directly via ftp, no it isnt. however you can download to your local machine whatever file is executed when you log in to the machine in your home directory, and edit that and include it to execute your script. hope that helps. though telnet, or better, ssh would be the best way to do it, IMO.
# 3  
Old 01-07-2003
If this is a nightly process starting at approximately the same time, you can use cron. Just send a second file after the first from the Windows system (blank file is fine).

You then set up your cron job to start at say 21:00. The first thing it does is a loop waiting for that second file (if you do it to the first then it attempts to run when the file may not be done ftping over). Once the file is found (utilizing sleep command to wait to look again...and a counter to 'bomb' out if it doesn't arrive within a certain time frame) your job continues your processing while you sleep, party, whatever. Email notification on completion (failure or success).
# 4  
Old 01-12-2003
For what its worth, they make software to do exactly what the poster is asking for, called Connect:Direct also commonly known as NDM (network data mover) Made by Sterling Software. We have it and use it all the time. Its basically just secure FTP. Commonly used to transfer data securely from unix to unix, unix to Win, and unix to mainframe (and vice versa). It has a step called SYSOPTS which allows you to kick off unix commands, scripts,post dependencies to CA-7, etc...

http://www.sterlingcommerce.com/solu...ct/direct.html

Last edited by google; 01-14-2003 at 10:24 AM..
# 5  
Old 01-17-2003
It is possible to send command via FTP using command "AC QUOTE ". I'm looking for doc

It is possible to send command via FTP using command "AC QUOTE ". I'm looking for documentation, but I remember I used this solution some time ago...

Do somebody know somethings about that ?Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute python file, FTP output to another server

Greetings all, We are implementing a new tool called URLwatch which is a python utility. Here are the requirements. 1) Run every 10 seconds 2) Execute the python script 3) Output file gets generated, FTP it to a differernt server I gave no idea how to do this and management needs a demo... (3 Replies)
Discussion started by: jeffs42885
3 Replies

2. UNIX for Dummies Questions & Answers

Remote FTP Backup -Tar archive+ encrypt+ split to a remote ftp

I have a huge directoy(200+ gb) for backup. I want upload the tar file(split files) simultaneous to a remote ftp. (pipeline, stdout, stdin etc.) I don't want write a data to local hdd. I have a ssd hdd. thanks. this code doesn't work.( yes i know the problem is split command!) tar cvzf -... (8 Replies)
Discussion started by: tara123
8 Replies

3. Shell Programming and Scripting

How to execute a batch file containing ftp commands??

hi, is there a way i can execute a batch file containing ftp commands like we execute sftp batch file. sftp -b batchfile user@server > output how to create a batch file for ftp executing command and how to run the batch file from a shell script? (2 Replies)
Discussion started by: Little
2 Replies

4. Shell Programming and Scripting

FTP a File to a Remote Server

Hi, I'm fairly new to Linux and need help with a script to ftp a .csv file to a remote server. I can ftp the .csv file manually from my server to the remote server in the "/" location. When I execute the script I receive the following message Could not create file. Here's what I have for... (5 Replies)
Discussion started by: Computergal2104
5 Replies

5. Shell Programming and Scripting

Not able to execute the file in remote host using except utility

I am automating the SFTP keys setp process: So i created the expect script for controlling the output of shell below is my main code: #!/usr/bin/expect set fd set password close $fd set df set app close $df spawn ssh servername << pb Pb file: set df set app close $df (4 Replies)
Discussion started by: Manoj Bajpai
4 Replies

6. Shell Programming and Scripting

Remote renaming of a unix file via ftp

Hi all, i'm just after some help regarding a batch script. I'm wanting to create a windows batch script which will push a file from my pc to a unix (AIX) system via ftp. i have this part working fine but as the file i'm sending already exists i want the script to also take a sideways copy of... (6 Replies)
Discussion started by: forefather1977
6 Replies

7. UNIX for Dummies Questions & Answers

To ftp file on a remote server

I want to send some files in .gz format from my desktop to a remote server. What will be the procedure for that thanks (5 Replies)
Discussion started by: supercops
5 Replies

8. HP-UX

How to execute a remote file with local command

Hello, I know this is somewhat strange, but please let me know if possible. I want to execute a program file in the remote machine with command on the local machine. Let me make things more clear. Suppose I have a cc on my local system and do not have that on the remote system. I want to use... (2 Replies)
Discussion started by: Veera_Raghav
2 Replies

9. Shell Programming and Scripting

FTP a file to a remote Server

Dear all, I am trying to push a data file to a remote Server. I am taking date variable from the database. The file I want to push looks like this in /tmp hostname.export.beforedate.dmp.gz for reading the date from the database i have a file get_date.sql which contains select... (2 Replies)
Discussion started by: shivaraj
2 Replies

10. Programming

ftp a file from remote pc of win 2000

Hello. I am programming in C on HP-UNIX system,i want ftp a file from remote pc which is window 2000 system,i donot how config my HP-UNIX and pc, i donot how program in C or in shell. Thank you for help. (3 Replies)
Discussion started by: bdyjm
3 Replies
Login or Register to Ask a Question