Home » Infrastructure » Unix » shell script to pick up a file when the file arrives into a folder
shell script to pick up a file when the file arrives into a folder [message #121002] Wed, 25 May 2005 06:34 Go to next message
dtazv
Messages: 1
Registered: May 2005
Location: chennai
Junior Member
Hi,

Thanks in Advance..

i have the following requirement, some one please help me..

An unix shell script has to read the file name from a folder as soon as that file comes into that folder.

Regards,
Alo

[Updated on: Wed, 25 May 2005 07:17]

Report message to a moderator

Re: shell script to pick up a file when the file arrives into a folder [message #122571 is a reply to message #121002] Tue, 07 June 2005 06:14 Go to previous messageGo to next message
mrinalkumar01
Messages: 6
Registered: April 2005
Junior Member
Try something like

while [ ! -f ${FTP_DIR}/FILE ]
do
echo " File not present till `date` "
seep 10000
done
mv -f ${FTP_DIR}/FILE ${INPUT_DIR}/
Re: shell script to pick up a file when the file arrives into a folder [message #149456 is a reply to message #122571] Thu, 01 December 2005 22:00 Go to previous messageGo to next message
anil_apps
Messages: 34
Registered: November 2005
Location: India
Member

Hi
can anybody help writing shell script
requirment is
to read a file from dir
then uncompres
then move to some other folder
pic other do same actions above
file name like transactions100*.dat

pls....urgent
Re: shell script to pick up a file when the file arrives into a folder [message #149610 is a reply to message #149456] Fri, 02 December 2005 08:09 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Post what you have done.
Re: shell script to pick up a file when the file arrives into a folder [message #153199 is a reply to message #149610] Thu, 29 December 2005 23:10 Go to previous message
anil_apps
Messages: 34
Registered: November 2005
Location: India
Member

Thanks for all who has helped me a lot
find the attachment that i developed for
picking a file from directory,uncompress it , load into table
count the tail records

thanks
Mahesh
Previous Topic: CPU runaway in AIX
Next Topic: Plz let me know the similar command in HP-UX
Goto Forum:
  


Current Time: Fri Nov 29 01:15:25 CST 2024