Shell Script running in another shell script and then exit
Hi,
I have a shell script. And i want use last line script then exit, but when i run this script, its only waiting and then i must use ctrl+z keys. when i look ps -f CronClean.sh and /usr/local/etc/rc.d/proxy_monitor.sh start running... #CronClean.sh ps -f | grep "proxy_monitor.sh" | awk '{print $1}' | xargs kill -9 /usr/local/etc/rc.d/squid.sh stop rm -rf /var/squid/cache/ mkdir -p /var/squid/cache/ chown proxy:proxy /var/squid/cache/ chmod 777 /var/squid/cache/ squid -z /usr/local/etc/rc.d/squid.sh start sh /usr/local/etc/rc.d/proxy_monitor.sh start Volkan |
Can you post the contents of /usr/local/etc/rc.d/proxy_monitor.sh? My guess would be that it hangs there...
|
|
Ok i did it ...
i used to nohup command and it works nohup sh /usr/local/etc/rc.d/proxy_monitor.sh start & |
All times are GMT -5. The time now is 05:51 PM. |