Automatically invocation of unix command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Automatically invocation of unix command
# 1  
Old 04-17-2012
Bug Automatically invocation of unix command

Dear All,

I have a directory when i received files by means of FTP, i want to invoke my shell scripts as soon as file hit the directory, if the files hit 10 times then the shell scripts should also get executed 10 times.

thanks

rajesh
# 2  
Old 04-17-2012
you need to place a cron which executes every X min intervals that would scan FTP dir.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

awk command in hp UNIX subtract 30 days automatically from current date without date illegal option

current date command runs well awk -v t="$(date +%Y-%m-%d)" -F "'" '$1 < t' myname.dat subtract 30 days fails awk -v t="$(date --date="-30days" +%Y-%m-%d)" -F "'" '$1 < t' myname.dat awk command in hp unix subtract 30 days automatically from current date without date illegal option error... (20 Replies)
Discussion started by: kmarcus
20 Replies

2. Shell Programming and Scripting

Automatically UNIX script

Write a unix script to do the following automatically- 1. Identify the latest path version directory under: /data/cs/chk. The latest at this time is 15_1_3. /data/cs/chk … drwxr-x--- 2 dba tms 4096 Jan 22 11:18 15_1_2 drwxr-x--- 2 dba tms 4096 Jan 22 11:18 15_1_3 2. Check for any new... (1 Reply)
Discussion started by: roy1912
1 Replies

3. Shell Programming and Scripting

command invocation

Hello, I've tested something like this: tcpdump -r /tmp/out.out > /tmp/out.ra 2> /dev/null works fine - there is no status message visible. if I place in a bash-script this line: $(tcpdump -r /tmp/out.out > /tmp/out.ra 2> /dev/null) I get status information on executing :confused:. I... (2 Replies)
Discussion started by: daWonderer
2 Replies

4. HP-UX

Unix server restart automatically

We have HP K class unix server, It's automatically restart the server. (10 Replies)
Discussion started by: ganesh24pal
10 Replies

5. Shell Programming and Scripting

Is command line invocation of gnome-terminal to run more than one command possible?

Hello, I am trying to learn how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here: #! /bin/bash # #TODO write this for gnome and xterm USAGE=" ______________________________________________ ${0##*/} run... (0 Replies)
Discussion started by: Narnie
0 Replies

6. Shell Programming and Scripting

how to send mail automatically in unix

Dear friends, I am storing daily some data in a tape disk. and numbering it from 1 2 3 like this. I want to get alert mail automatically when ever data is greater than or equal to 600. to my yahoo mail. i want to put that mail script in crontab so it will check the data daily at... (7 Replies)
Discussion started by: rajan_ka1
7 Replies

7. UNIX and Linux Applications

How to automatically detect command failure

I have a shell script. In this script I executes various command and my requirement is such that if any command fails I've to terminate the shell script. To achieve this objective I'm checking the value of $? after each command and if its value is greater thaen I 'exit' the script. Is there... (2 Replies)
Discussion started by: ashok2008
2 Replies

8. Shell Programming and Scripting

run a command automatically after every 10 mins

Hi friends, I need to write a script which runs a command (on that particular server only) after every 10 mins, and the contents are also echoed on that very terminal only. And then I need to compare the last two outputs, and mail if there is any difference in the last two outputs. Can we set... (4 Replies)
Discussion started by: vikas027
4 Replies

9. AIX

Vi opens automatically when i login to a unix box

When I login to a unix box using a putty session , I'm landed in a vi editor, instead of my home directory,I'm guessing instead of pointing me to my home directory, the system points me to /usr/bin/vi. As a result, everytime I log into the system I open up a vi editor and am in there. how do i... (3 Replies)
Discussion started by: ramky79
3 Replies

10. UNIX for Dummies Questions & Answers

Automatically executing a command

Hi I was wondering if anyone knew the answer to this question? I am trying to find a way of executing a command if a certain file is created in the same directory. One way I thought about doing this was to create a FORTRAN program that continually searches for this file. If the file... (8 Replies)
Discussion started by: robbiegregg
8 Replies
Login or Register to Ask a Question