[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [ic] Need to restart ic continuously
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?
#!/bin/bash
var=`ps -ax | grep "servername/ic" | grep -v -c grep`
if [ 0 -eq $var ]
then
/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 &
fi
<<
- Ed L.
At 08:18 AM 10/12/00 -0700, you wrote:
>Okay.
>
>Anyone wanna help with this? I have never written a shell script and for
>those who do, I'd imagine executing three lines at the command line
>wouldn't be that difficult. I just need a script that does:
>
>---
>MINIVEND_DBFILE=1
>export MINIVEND_DBFILE
>restart
>---
>
>
>Thanks in advance,
>
>
>
>>From: Stefan Hornburg <racke@linuxia.de>
>>Subject: Re: [ic] Need to restart ic continuously
>>Date: 12 Oct 2000 14:17:48 +0200
>>
>>"Jeff Case" <jeff_case@hotmail.com> writes:
>>
>> > I'm on a shared server that shuts down ic/MV after X
>> minutes. Visitors then
>> > get the MV "Server busy" signal.
>>
>>This is crap. Change your provider. It is not worth to fiddle with
>>something like that.
>
>
>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at
>http://profiles.msn.com.
>
>
>_______________________________________________
>Interchange-users mailing list
>Interchange-users@www.minivend.com
>http://www.minivend.com/mailman/listinfo/interchange-users
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
New Media E.M.S. Software Solutions for Business
463 Main St., Suite D edl@newmediaems.com
Placerville, CA 95667 http://www.newmediaems.com
(530) 622-9421 (530) 622-9426 fax
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
_______________________________________________
Interchange-users mailing list
Interchange-users@www.minivend.com
http://www.minivend.com/mailman/listinfo/interchange-users