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