tony@joshua.math.ucla.edu (04/28/89)
I'm posting this for my brother and I hope I'm posting this to the correct news group. My brother's company uses a Hewlett-Packard 9000/825 computer running UNIX System V and he has a problem with /etc/rc. He wrote a program that collects data from sometype of a "merlin-ish " telephone box and inserts it into a database so that managers can keep track of the in-coming and out-going calls. The script that does this is as follows: ---------------------------------------------------------------------- : INFORMIXDIR=/usr/informix DBDELIMITER=\| DBTEMP=/usr/tmp export INFORMIXDIR DBDELIMITER DBTEMP cd /usr/lei /usr/lei/_collect /dev/tty2p0 /usr/lei/result 300 >> /usr/lei/collect_log 2>&1 /usr/informix/bin/isql - - < /usr/lei/load.sql >> /usr/lei/collect_log 2>&1 /usr/lei/collect ---------------------------------------------------------------------- The program "_collect" does the actual data collection and "isql" is the database manager. The above script works great when executed from the command line , ie: "collect & <CR>" works fine but when its put into /etc/rc nothing happens, ie. after reboot a sh process is forked but "_collect" and "isql" never gets called. The end of /etc/rc file looks like this: ---------------------------------------------------------------------- # # Start up SMDR call monitoring # NOTE THIS IS NOT WORKING! START IT MANUALLY FOR NOW echo SMDR collection started rm -f /usr/lei/collect_log nohup /usr/lei/collect > /usr/lei/collect_log 2>&1 & ---------------------------------------------------------------------- He's completely frustrated at this point. Any pointers and suggestions would be greatly appreciated. Please e-mail replies as I do not get to read this news group much. Thanks in advance. Tony Lei INTERNET: tony@math.ucla.edu UUCP: ..!ucbvax!ucla-cs!math.ucla.edu!tony