Sponsored Content
Full Discussion: Cron FTP job
Top Forums UNIX for Advanced & Expert Users Cron FTP job Post 78481 by sudhanshu_sinha on Wednesday 20th of July 2005 02:36:23 AM
Old 07-20-2005
hi
you should check the size of the disk in the server and permission given to the user you are logging in as ,if u have to put multiple files at a time,turn off the interactive mode
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ftp in cron job

I am writing a script that will be placed in a crontab, which basically retrieves a file that is overwritten everyday (with current customer data) and then sent to another company. I was wondering what the best way to ensure that ftp was successful and notification of a success or failure message.... (3 Replies)
Discussion started by: walterja
3 Replies

2. UNIX for Dummies Questions & Answers

cron ftp job help

I am new to cron and am trying to set a cron job that will run everyday at 2 to go out to a server (via ftp with user name and password) and get a file and then bring it back to my sever. Below is what I have but it doesn't seem to be working. Any help would be appreciated. cron command - will... (4 Replies)
Discussion started by: bernfuss
4 Replies

3. UNIX for Dummies Questions & Answers

CRON usage for CRON job

can anybody explain the usage of CRON for adding a cron job. please provide an example also for better understanding !!! Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

4. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

5. Shell Programming and Scripting

Im trying to create a FTP Cron Job

Hello, Im fairly new to this and am hoping for your help in moving forward. 1. I need to carry out a FTP transfer from SERVER1 to SERVER2 at 3am every morning. 2. The FTP is to work on SERVER1 3. There will be many files to transfer (96 files per day) 4. I want to delete the files... (3 Replies)
Discussion started by: nozerf
3 Replies

6. UNIX for Dummies Questions & Answers

If FTP cron job fails to connect = quit

Im having a problem with my ftp CRON jobs. I have another related (but not the same question in shell scripting). My FTP CRON jobs connect to a server and drop some files off, if for some reason it cannot connect to the server (timesout/password wrong etc) instead of stopping, it tries again... (3 Replies)
Discussion started by: mokachoka
3 Replies

7. UNIX for Advanced & Expert Users

cron job to extact lines from files to another file and ftp to new server

i have a text file in this format: which creates a new one everyday in the form of filename _zing__r200_2012_8_10_log.txt Fri Aug 10 07:29:17 EDT 2012, usera(192.168.0.245) to anotheruser: hey top, this is a private test Fri Aug 10 07:29:28 EDT 2012, anotheruser(192.168.0.245) to usera: got... (2 Replies)
Discussion started by: bkkid
2 Replies

8. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

9. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

10. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies
tftp(1) 						      General Commands Manual							   tftp(1)

NAME
tftp - Provides the Trivial File Transfer Protocol (TFTP) SYNOPSIS
Interactive form: tftp [remote_host] [port] Command-line form: tftp remote_host [port] -subcommand [args] DESCRIPTION
The tftp command transfers files between hosts using TFTP. Because TFTP is a minimal file transfer protocol, the tftp command does not pro- vide all of the features described under the ftp command. For example, tftp does not provide subcommands to list remote files or change directories at the remote host, and limited file access privileges are given to the remote TFTP server. Note that the tftp command is not available when your host is operating in controlled access (secure) mode. The remote host must have a tftpd server started by its inetd server and have an account defined that limits the access of tftpd. Use the tftpd command to set up the TFTP environment and the nobody account. The tftp command has two forms: interactive form and command line form. In the interactive form, tftp is issued alone or with a host argu- ment that specifies the default host to use for file transfers during this session. You can also specify a port for the tftp connection to use. When you enter the interactive form, the tftp> prompt appears. In the command line form, you specify command arguments on the com- mand line, and no prompt appears. The tftp command can overwrite a file, but prompts you before doing so. When transferring data to a remote host, the transferred data is placed in the directory specified by the remote_file argument. remote_file must be a fully specified filename, and the remote file must both exist and have write permission set for others. The tftp command attempts to write the data to the specified file. However, if the remote TFTP server does not have the appropriate privileges to write the remote file or if the file does not already exist, the transfer fails. SUBCOMMANDS
The tftp subcommands can be entered in either their interactive form or in their command line form. Displays help information. If a sub- command is specified, only information about that subcommand is displayed. Synonym for the mode ascii subcommand. Synonym for the mode binary subcommand. This subcommand is used in the interactive mode. The image mode is the same as mode binary, but is used on the command line. Sets the remote host, and optionally the port, for file transfers. Because the TFTP protocol does not maintain connections between transfers, the connect subcommand does not create a connection to host, but stores the settings for transfer operations. Because the remote host can be specified as part of the get or put subcommands, which overrides any host previously specified, the connect subcommand is not required. Transfers a file or set of files from the remote host to the local host. Each of the remote_file arguments can be speci- fied in one of the following two ways: As a file that exists on the remote host, if a default host was already specified. As host:file, where host is the remote host and file is the name of the file to copy to the local system. If this form of the argument is used, the host specified for the last transfer becomes the default host for subsequent transfers in this tftp session. In either case, remote_file must be a fully-specified filename. Toggles hash marks. Sets the transfer mode to ascii or binary. A transfer mode of ascii is the default. Sets mode to octet. Transfers a file or set of files from the local host onto the remote host. The remote_directory and remote_file arguments can be specified in one of the following two ways: As a file or directory that exists on the remote host, if a default host was already specified. As host:remote_file, where host is the remote host and remote_file is the name of the file or directory on the remote system. If this form of the argument is used, the host specified for the last transfer becomes the default host for subsequent transfers in this tftp session. In either of these cases, the remote filename or directory name must be a full pathname, even if the local and remote directories have the same name. If a remote directory is specified, the remote host is assumed to use UNIX pathname syntax. Exits tftp. An End-of-File also exits the program. Displays transfer rate information. Defines the retransmission time-out for each packet, in seconds. Shows the current status of tftp, including the current transfer mode (ascii or binary), connection status, time-out value, and so on. Sets the total transmission time-out to the number of seconds specified by value. Turns packet tracing on or off. Turns verbose mode, which displays additional information during file transfer, on or off. EXAMPLES
To enter tftp, check the current status, connect to host1, and transfer the file update from host1 to the local host, enter: $ tftp tftp> status Not connected. Mode: netascii Verbose: off Tracing: off Rexmt_interval: 5 seconds, Max-timeout: 25 seconds tftp> connect host1 tftp> get /u/alice/update update tftp> quit $ The get subcommand transfers the file update from the remote host to your local host. Note that the directory /u/alice on the remote host must have read permission set for others. To perform the same operation in command-line mode, enter: $ tftp host1 -status -get /u/alice/update update Connected to host1. Mode: netascii Verbose: off Tracing: off Rexmt_interval: 5 seconds, Max-timeout: 25 seconds To open a tftp connection to host1, set binary mode, transfer the file game.exe from the local host to host1, and rename the file in the process, enter: $ tftp host1 tftp> binary tftp> put game.exe /u/alice/tictactoe.exe The put subcommand transfers the file game.exe from your local host to the remote host as tictactoe.exe. Note that the directory /u/alice on the remote host must have write permission set for others. Also, the file tictactoe.exe must already exist on the server and have write permission set for others. To perform the same operation in command-line mode, enter: $ tftp host1 -binary -put game.exe /u/alice/tictactoe.exe To transfer two files from the local host to two remote hosts, enter: $ tftp tftp> put product.html pricelist.html host1:/u/alice/public_html tftp> put product.html pricelist.html host2:/public/documents The put subcommand transfers the files from your local host to the specified directory on each remote host. Again, the files and directories must already exist on the remote hosts and have write permissions set for others. When the file transfer is complete, the last host, host2, becomes the default host for subsequent transfers in this tftp session. To perform the same operation in command-line mode, enter: $ tftp host1 -put product.html pricelist.html /u/alice/public_html $ tftp host2 -put product.html pricelist.html /public/documents FILES
Defines the address of the local host, and specifies the names and addresses of remote hosts. Defines the sockets and protocols used for Internet services. SEE ALSO
Commands: ftp(1), ftpd(8), inetd(8), rcp(1), syslogd(8), tftpd(8) tftp(1)
All times are GMT -4. The time now is 03:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy