[ic] Need to restart ic continuously
Steve & Patti Getzinger
Thu, 12 Oct 2000 16:53:53 -0500
I have a file like that all I did was cd to the directory before I executed.
Don't know why but I have to touch the directory before the file will execute
properly. Perhaps your fix is just that simple.
Jeff Case wrote:
> Ed -- thanks for the help.
> I don't really understand my own problem either. If I did, I would have a
> clue as to where to look, or start to try to fix it.
> When I try to run the below script, I get the following output:
> ./restart_mvend.cgi: /my/local/directory/ic/bin/MINIVEND_DBFILE=1: no such
> file or directory
> When I am in /my/local/directory/ic/bin at the command line I can do:
> without error.
> HOW do I make the script do this?
> >From: Ed LaFrance <firstname.lastname@example.org>
> >Date: Thu, 12 Oct 2000 08:49:57 -0700
> >I guess I don't understand something about your problem. Just add those
> >lines to the shell script. If they generate output, redirect it to the
> >null device. Does this work?
> >var=`ps -ax | grep "servername/ic" | grep -v -c grep`
> >if [ 0 -eq $var ]
> >/my/local/directory/ic/bin/MINIVEND_DBFILE=1 >/dev/null
> >/my/local/directory/ic/bin/export MINIVEND_DBFILE >/dev/null
> >/my/local/directory/ic/bin/restart &
> >- Ed L.
> >>[snip] I just need a script that does:
> >>export MINIVEND_DBFILE
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> Share information about yourself, create your own public profile at
> Interchange-users mailing list
WDI Steve & Patti Getzinger
702 Lincolnway West email@example.com
South Bend, IN 46616 http://www.wubs.org/
219-287-4700 (Main Office) 317-535-0239 (Direct Line)