Basically i have an FTP server that connects to other ftp servers and sends and downloads files every few hours or so. There are 12 different accounts that all have 2 scripts each, one to send and one to receive. Below is an example send script for one account. There all the same, just the top variables are changed...
I have put these all in cron to run at certain times but after activating all of them and checking it in the morning it was hanging on connection (ssh)... i managed to get in but was greeted with a number of CRON memory error messages... it seems if the jobs are running into some sort of error they are running again exactly 1min later... how can i stop this???
Any help is appreciated
---------- Post updated at 04:39 AM ---------- Previous update was at 04:33 AM ----------
The error message is along the lines of (sorry i forgot most of it)
out of memory kill process cron score
Last edited by Franklin52; 10-16-2009 at 06:49 AM..
Reason: Please use code tags!
Hi,
i have scheduled my scripts in cron, some time the script doesn't runs ..which will impact me a lot,
can some one help me such that mail has to come stating script has run successfully/unsuccessful
any help will be appreciated..
thanks in advance,
geeko (0 Replies)
I have the following cron job in the crontab.
#! /bin/bash
25 15 * * 1-5 /export/home/svittala/scripts/scpt1.sh >/dev/null 2>&1.
The problem that I am facing is - the scpt1.sh can be executed manually. But, it is not executing through CRON. Not sure what's the issue. Any hints?. Thanks.... (5 Replies)
Hi all,
I have set up a cron job which calls another shell script shell script which in turn calls a Java process. The cron tab looks so.
0,30 7-18 * * 1-5 /u01/home/weblogic/brp/bin/checkstatus.sh >> /u01/home/weblogic/logs/checkstatus.log
The checkstatus.sh scripts looks like this.
... (4 Replies)
I would like to run two scripts using cron one immediately after the other. Is it enough to put them one after another in the cron file to run at the same time, or will this cause them to run concurrently? (4 Replies)
Hello All,
I have 3 scripts namingly 1X 2X and 3X.
I have one directory ABC created which contains some 40 sub directories.
I have one input file in the below format.The input file resides in ABC directory.
Inputfile format;
subdirectoryname date
subdirectoryname1 date
subdirectoryname2... (1 Reply)
I need to run a script (from cron) that runs a second script.
What worries me is that second script, when run from bash, upon finishing doesn't return to bash unless I press the 'Enter' key.
I presume that's because last command in that script ends with &
Could that be a problem for cron?... (2 Replies)
hi,
while separated they produce the usual mail alert and i can see the output...
if i write into the php script:
<?php
system('php -f /var/www/vhosts/domain.com/httpdocs/folder/script1.php');
system('php -f /var/www/vhosts/domain.com/httpdocs/folder/script2.php');
system('php -f... (0 Replies)
Hello everyone,
I have an AIX 6.1 machine and i experienced a problem with my cron scripts. It appears that somebody renamed a cron script so crontab could not execute it.
Is there a way to put some security on cron scripts so nobody else except root can rename or delete a cron script? Or they... (6 Replies)
Hello gurus,
I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired
report when I run the script shown below from a shell script in cron. For example, my script and the crontab file setup
is shown below:
#!/bin/ksh
db2... (3 Replies)
Discussion started by: okonita
3 Replies
LEARN ABOUT REDHAT
ftpls
ftpls(1) General Commands Manual ftpls(1)
ftpls - generate a ftp directory listing
SYNOPSIS
ftpls ftp://host[:port]/directory
or
ftpls host[:post] /directory
DESCRIPTION
ftpls generates a listing of files and directories in a FTP directory. ftpls by default prints a human readable ascii output, but may also
create HTML and machine parsable output.
OPTIONS
Login options
-u, --user=NAME
Use NAME to login on the ftp server. Note that this option overrides an user name given in an URL.
The default is `anonymous'. Use an empty name to force to not log in.
-p, --pass=PASSWORD
Use PASS as password to login on the ftp server. Note that this option overrides a password given in an URL.
The default is `anonymous@invalid.example'. Use an empty password to enforce not sending any password.
--account=ACCOUNT
Send ACCOUNT as the account name using the ACCT ftp command if the ftp servers asks for one.
ACCOUNT in ftp speak is some kind of sub account in some other terminologies. If you don't understand what it means you have a good
chance to never need this option anyway. If you think you need it please try the -u option first.
--tries=NUMBER
Number of tries to connect and log in. The default is 1, meaning that ftpls will give up after the first error.
--login-sleep=NUMBER
ftpls will sleep for NUMBER seconds after a try to connect or login has failed. The default is 5, a zero is treated as one, and
abuse (especially together with --tries) is likely to annoy the server administrator.
This option was added in version 0.4.5.
Output mode options
-h, --html
Create HTML index containing all files together with modification time and size.
Note: The links in this index will contain username and password if you include them into an URL given to ftpls on the command line (either
as argument or through the --urlprefix option). They will not be included otherwise, for security and privacy reasons.
-m, --machine
Create machine parsable output.
-t, --title=TEXT
Title text to use on the HTML output.
-U, --urlprefix=URL
URL-Prefix to use in listings. If this option is not given then an URL given on the command line will be used instead, and if this
has not been given an URL will be created from host, port and directory given on the command line.
--print-dir
Print the name of a sub directory before printing it's content. Do not print the name of the top level directory of the listing.
Use this option together with --raw. Do not use it together with --html.
SORTING
-a, --alpha
sort alphabetical.
-z, --omega
sort reverse alphabetical.
-n, --newest
sort youngest first.
-o, --oldest
sort oldest first.
-s, --shortest
sort shortest first.
-l, --longest
sort longest first.
Other options
--ascii-listings
Do directory listings in ASCII mode instead of binary mode. Use this option if the FTP server is unable to correctly list
directories in binary mode, for example, if you see a message like this:
ftpls: failed to read directory listing: protocol error
This option was added in version 0.5.2.
-L, --list-options=OPTS
Add OPTS to LIST command. This allows to pass arbitrary options to the FTP servers LIST command. Note that ftpls does not cope well
with recursive directory listings.
--interactive
ftpls will read the directories to be listed from the standard input. Any remote directory given on the command line will be
ignored.
Each directory listing is terminated by a END-OF-LISTING line. Do not use this together with the --html option.
This option was added in version 0.3.6.
-R, --recursive
Do a recursive directory listing by first printing one directory, including sub directory names, and then traversing into sub
directories.
--raw
Output directory listings in the original format and sort order.
-T, --timeout=SECONDS
Timeout to use for network read/write and connect operations. The default is 30 seconds and is usually sufficient.
This option was added in version 0.3.8.
--force-select
Do not use the poll() system call even if it's available, but use select(). This allows ftpls to be used together with the runsocks
program from the socks5 reference implementation. Please note that you'll need a directly reachable name server anyway, as the DNS
library in use does not support SOCKS (you can always use IP addresses).
This option was added in version 0.3.8.
--max-depth
Descend at most LEVEL directories deep. 0 means do not enter sub directories at all, 1 means enter sub-directories, but not their
sub-directories, and so on. This option enables the --recursive option, too. The default is 2^32-1, meaning enter all.
This option was added in version 0.5.2.
EXAMPLES
Generate a HTML index page
ftpls
--html --title "CVS tree index by date"
--urlprefix ftp://ftp.ohse.de/uwe/cvs-trees/
--newest
ftp://serak.ohse.de/uwe/cvs-trees
> SOMEWHERE/cvs-trees/index-by-date.html
AUTHOR
Uwe Ohse, uwe@ohse.de
SEE ALSO ftpcopy(1).
The homepage may be more up-to-date, see
http://www.ohse.de/uwe/ftpcopy.html.
ftpcopy 0.5.2 ftpls(1)