10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am connecting to remote server and try to check if files with timestamp as Today's day are on the directory. Below is my code
TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;
Today=`date +%Y%m%d`;
if ;then
echo "We... (1 Reply)
Discussion started by: digioleg54
1 Replies
2. UNIX for Dummies Questions & Answers
i want to save current day file daily
for this is am using below command.
cp -p $(ls -lrt | grep "Apr 15" | awk '{print $9}'
in order to script this part, i am saving date output in a file using below command
date | awk '{print $2,$3}' >>t1
thru below command i want to list the file of... (7 Replies)
Discussion started by: scriptor
7 Replies
3. UNIX for Dummies Questions & Answers
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
4. UNIX for Dummies Questions & Answers
Hi All,
I have a requirement where I need to first capture the current day & move all the files from a particular directory based on a previous day.
i.e move all the files from one directory to another based on current day & a previous day. Here is what I am trying, but it gives me errors.... (2 Replies)
Discussion started by: dsfreddie
2 Replies
5. Shell Programming and Scripting
Hi All,
can anyone pls share the command to list the files of current day only. i want to check if there are any files in a particular directory which are not of current date. (6 Replies)
Discussion started by: josephroyal
6 Replies
6. UNIX for Dummies Questions & Answers
I just realize the only way is to download and upload again.. is not possible to copy them remotely with the ftp protocol ?
thanks (2 Replies)
Discussion started by: aneuryzma
2 Replies
7. Shell Programming and Scripting
HI,
I'm downloading one day old files from ftp site.
Below is my script
----------------------------
printf "open $HOST \n" > ftp.cmd
printf "user $USER $PASSWD\n" >> ftp.cmd
printf "bin\n" >> ftp.cmd
#printf "cd /Models/\n" >> ftp.cmd
printf "prompt\n" >> ftp.cmd
printf "for oldfile... (4 Replies)
Discussion started by: shekhar_v4
4 Replies
8. Shell Programming and Scripting
Hi All,
I have a scenario where I need to download the previous day modified files from other server to my server through FTP . Could any one please send me the shell script for the same.
I used the following but I dont know how to proceed after this.
ftp -n -i -v $IP <<ENDOFinPUT >>... (3 Replies)
Discussion started by: sarathchandrach
3 Replies
9. Shell Programming and Scripting
i want to delete files that are one day old
condition is files should be of current month only ie if iam running script on 1 march it should not delete files of 28 feb(29 if leap year :-)}
any modifications to
find $DIR -type f -atime +1 -exec rm -f{}\; (4 Replies)
Discussion started by: maverick
4 Replies
10. Shell Programming and Scripting
Hi all:
I am new to this board and UNIX programming so please forgive if I don't explain something correctly.
I am trying to write a script to keep track of our links, we link one program written for Client A to Client B's directory.
What we want to do is to keep track of our linked programs... (1 Reply)
Discussion started by: Smurtzy
1 Replies