10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
We have lftp command inside shell file. which is intern calling .cfg file for transferring the file from one server to other.
Below command to not working.
lftp -e "set net:max-retries 1; set net:reconnect-interval-base 1; put -E -O /destinationdir/inbox/ /sourcedir/test.txt; bye" -u... (4 Replies)
Discussion started by: johnsnow
4 Replies
2. Shell Programming and Scripting
Hi,
I need files exactly 3 to 7 days old.
Today is 28th July 2016.
I have two files one dated 25th July and other 21st July which are 3 to 7 days old.
94702 1 -rw-r--r-- 1 m1083 user1 26 Jul 25 13:00 ./Report_0751.txt
94751 1 -rw-r--r-- 1 m1083 user1 128 Jul... (4 Replies)
Discussion started by: mohtashims
4 Replies
3. Shell Programming and Scripting
I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also?
I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies
4. Shell Programming and Scripting
Hi there, I'm new to shell scripting and need some help if possible?
I need to create a shell script (.sh) to run as a cron job on an ubuntu linux server to connect to an external sftp sites directory using credentials (which I have) and then download to our internal ftp server and then copy... (3 Replies)
Discussion started by: ghath
3 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
Request your expertise in tackling one requirement in my project,(i dont have much expertise in Shell Scripting). The requirement is as below,
1) We store the last run date of a process in a file. When the batch run the next time, it should read this file, get the last run date from... (1 Reply)
Discussion started by: dsfreddie
1 Replies
6. UNIX for Advanced & Expert Users
Please let me know what is lftp options combination to wait and download a file from target as soon as its gets created. I tried with different options but not able to get it working as I need
any help would be appreciated (4 Replies)
Discussion started by: bmkux
4 Replies
7. Shell Programming and Scripting
Hey Guys,
i need to download files from a ftp-server that not older than $VAR (x) days
eg for seven days
./script 7
or two weeks
./script 14
all files from the last 14 days will download but how i can explain "ftp" this?
sorry for my strange english :/ (2 Replies)
Discussion started by: tetex
2 Replies
8. Shell Programming and Scripting
Hi,
I experience some difficulties to perform a script to be able to download some files via HTTP.
The Perl script is located on a Linux in a server ("/var/www/cgi-bin/down.pl") where I can run it via Internet Explorer.
I'm able to display the directory content ("/home/toto") but I'm not... (1 Reply)
Discussion started by: imad77
1 Replies
9. Shell Programming and Scripting
Hi,
I would like to list latest 2 days, 3 days or 4 days,etc of files in the directory...
how? is it using ls? (3 Replies)
Discussion started by: happyv
3 Replies
10. Shell Programming and Scripting
Simple question I am sure - but one that I dont know the answer to nevertheless..
I have a directory that I store log files in - but I wish to run a daily script in cron to delete all files in this directory that have not been modified within the last 7 days...
Can anyone help me? (10 Replies)
Discussion started by: frustrated1
10 Replies
uucleanup(1M) System Administration Commands uucleanup(1M)
NAME
uucleanup - uucp spool directory clean-up
SYNOPSIS
/usr/lib/uucp/uucleanup [-Ctime] [-Dtime] [-mstring]
[-otime] [-ssystem] [-Wtime] [-xdebug-level] [-Xtime]
DESCRIPTION
uucleanup will scan the spool directories for old files and take appropriate action to remove them in a useful way:
o Inform the requester of send/receive requests for systems that can not be reached.
o Return undeliverable mail to the sender.
o Deliver rnews files addressed to the local system.
o Remove all other files.
In addition, there is a provision to warn users of requests that have been waiting for a given number of days (default 1 day). Note: uucle-
anup will process as if all option times were specified to the default values unless time is specifically set.
This program is typically started by the shell uudemon.cleanup, which should be started by cron(1M).
OPTIONS
-Ctime Remove any C. files greater or equal to time days old and send appropriate information to the requester (default 7 days).
-Dtime Remove any D. files greater or equal to time days old, make an attempt to deliver mail messages, and execute rnews when
appropriate (default 7 days).
-mstring Include string in the warning message generated by the -W option. The default line is "See your local administrator to
locate the problem".
-otime Delete other files whose age is more than time days (default 2 days).
-ssystem Execute for system spool directory only.
-Wtime Any C. files equal to time days old will cause a mail message to be sent to the requester warning about the delay in con-
tacting the remote. The message includes the JOBID, and in the case of mail, the mail message. The administrator may
include a message line telling whom to call to check the problem (-m option) (default 1 day).
-xdebug-level Produce debugging output on standard ouput. debug-level is a single digit between 0 and 9; higher numbers give more
detailed debugging information. (This option may not be available on all systems.)
-Xtime Any X. files greater or equal to time days old will be removed. The D. files are probably not present (if they were, the
X. could get executed). But if there are D. files, they will be taken care of by D. processing (default 2 days).
FILES
/usr/lib/uucp directory with commands used by uucleanup internally
/var/spool/uucp spool directory
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWbnuu |
+-----------------------------+-----------------------------+
SEE ALSO
uucp(1C), uux(1C), cron(1M), attributes(5)
SunOS 5.11 19 May 1993 uucleanup(1M)