создаю процес for {} 1 {} { if [fork]!=0 {exec sleep 20 ;continue} disconnect log_file -noappend /backup/cisco/cisco_r_config_save.log log_user 0 ....... exit } После чего:
[root@www ~]# ps aux | grep cisco root 21075 0.0 0.2 6392 1436 pts/2 S+ 17:44 0:00 /usr/bin/expect -f ./cisco_r_config_save.exp.forech pnglvovas root 21076 0.0 0.0 0 0 ? Zs 17:44 0:00 [cisco_r_config_] <defunct> root 21100 0.0 0.0 0 0 ? Zs 17:45 0:00 [cisco_r_config_] <defunct> root 21109 0.0 0.0 0 0 ? Zs 17:45 0:00 [cisco_r_config_] <defunct> root 21121 0.0 0.0 0 0 ? Zs 17:45 0:00 [cisco_r_config_] <defunct> root 21161 0.0 0.0 0 0 ? Zs 17:46 0:00 [cisco_r_config_] <defunct>
как избавиться от зомби ?