Page 1 of 1

Problems with CRON Scripts on FreeBSD

PostPosted: Sun Oct 08, 2006 9:27 am
by tom8
I'm on FreeBSD and have had some issues setting VICI up. I think I have everything resolved execpt this error im getting in a few scripts:

ps: %p: keyword not found
ps: %a: keyword not found
ps: no valid keywords; valid keywords:


it's from this command in the script:
ps -o "%p %a" --no-headers -A

Does anyone know how to fix this for FreeBSD or is this a Config issue???

Any help would be great.

PostPosted: Mon Oct 09, 2006 6:36 am
by mflorell
I haven't worked on xBSD in several years, the important part of the command is that you get the full process application string so that it can see if the target script is running. You will probably have to tinker with the ps flags to get this to work. This is based on the ps util from gnu that was built for Linux.

PostPosted: Mon Oct 09, 2006 2:24 pm
by tom8
Got it working - awsome!!!!

I will post a more detailed info on installing for FreeBSD after furthure testing- It took two of us :)

here are the basics to start:

installed mysql50-server from ports

installed apache2 from ports

installed screen & varous other items from ports

installed asterisk from ports

had to edit /usr/local/etc/rc.d/zaptel.sh (had to add ztdummy.ko)

recompiled asterisk with patch & amd per SCRATCH INSTALL

the rest i followed the SCRATCH doc for. Then had a few issues:

modified mysql tables - will post details

add screen sym link to /usr/bin => /usr/local/bin/screen - scripts were hard coded.

also had to change the ps command line to:
@psoutput = `/bin/ps -o pid,args -A`;
-for each script in /usr/share/astguiclient



I will be testing this with load - just have one phone for basic testing right now. I will post the results.

This is FreeBSD 5.4 - I will get it working on 6.1 now that I know the issue.

again thankx for the support site - it really helped.

PostPosted: Fri Feb 16, 2007 1:38 pm
by sheikhatif
Hi tom can u please tell me the complete procedure that how to install vici in freebsd ur kind cooperation is highly appreciated.....


tom8 wrote:Got it working - awsome!!!!

I will post a more detailed info on installing for FreeBSD after furthure testing- It took two of us :)

here are the basics to start:

installed mysql50-server from ports

installed apache2 from ports

installed screen & varous other items from ports

installed asterisk from ports

had to edit /usr/local/etc/rc.d/zaptel.sh (had to add ztdummy.ko)

recompiled asterisk with patch & amd per SCRATCH INSTALL

the rest i followed the SCRATCH doc for. Then had a few issues:

modified mysql tables - will post details

add screen sym link to /usr/bin => /usr/local/bin/screen - scripts were hard coded.

also had to change the ps command line to:
@psoutput = `/bin/ps -o pid,args -A`;
-for each script in /usr/share/astguiclient



I will be testing this with load - just have one phone for basic testing right now. I will post the results.

This is FreeBSD 5.4 - I will get it working on 6.1 now that I know the issue.

again thankx for the support site - it really helped.