Hi,
I am new to this form and to linux. (Sorry for my English)
I have 5 bash scripts written in bash.
It is a simple script that puts files on the internet, using ftp.
This scripts runs every 5 minutes and one script every 1 minute using crontab.
Code:
#!/bin/sh
# Run the weer update poller every 1 minutes
*/1 * * * * root /home/weerupdatelive.sh > /dev/null 2>&1
The files I put on the internet are not large and in several seconds the are on the internet.
When the script is done, not every time the process is killed.
After a week I have about 400 process running ftp.
Then I must use kill -9 to kill the process.
Is the a easier way to do this or to control the process using a pid file?
The script is simulaitr to this:
Code:
#!/bin/sh
# this script
user=user1@provider.com
password=password
basedir='/web/weergegevens'
ftp -n home.provider.com<<EOF
user ${user} ${password}
lcd ${basedir}
binary
prompt
mput mini_current*.*
mput aktuell*.*
mput instr_*.*
mput client*.txt
send wedaal.txt
send windbft_current.gif
send ws_realtime.txt
send kort.html
send metric.text
send barotrend.gif
send current.html
send custom.html
send datastation.php
send ddis_current.gif
send ddis_f_current.gif
send hetweeractueel.html
When I run this script manual it is done within 20 sec.