How to launch a program when arrival of the file (merged) [message #313559] |
Sun, 13 April 2008 13:50 |
msuphaluk
Messages: 20 Registered: December 2007 Location: BKK,Thailand
|
Junior Member |
|
|
Dear All,
I would like to ask for any suggestion from you. I am having a user requirement to write a shell script to check for on arrival on the file and then execute a program.
For example: when user sends the file .dat then send the file .ok. in target directory. Then my program will automatical execute. But my p/b is how can I know when this file is placed in target directory.
Any suggestion or hit are totally welcome.
Best regards,
Suphaluk M.
|
|
|
How to launch a program when arrival of the file [message #313561 is a reply to message #313559] |
Sun, 13 April 2008 13:51 |
msuphaluk
Messages: 20 Registered: December 2007 Location: BKK,Thailand
|
Junior Member |
|
|
Dear All,
I would like to ask for any suggestion from you. I am having a user requirement to write a shell script to check for on arrival on the file and then execute a program.
For example: when user sends the file .dat then send the file .ok. in target directory. Then my program will automatical execute. But my p/b is how can I know when this file is placed in target directory.
Any suggestion or hit are totally welcome.
Best regards,
Suphaluk M.
|
|
|
|
|
|
|
Re: How to launch a program when arrival of the file (merged) [message #313645 is a reply to message #313559] |
Mon, 14 April 2008 00:53 |
msuphaluk
Messages: 20 Registered: December 2007 Location: BKK,Thailand
|
Junior Member |
|
|
Good comparison. I can see the picture.
I asked above question I have seen one client uses this method and the program will be launched right away after arrival of the file. That mean he put the constab to check for a few second.
By the way, Thank a lot for all kindly informations.
Regards,
Suphaluk M.
|
|
|