Problems with CRON Scripts on FreeBSD

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Problems with CRON Scripts on FreeBSD

Postby tom8 » Sun Oct 08, 2006 9:27 am

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.
tom8
 
Posts: 2
Joined: Sun Oct 08, 2006 9:24 am

Postby mflorell » Mon Oct 09, 2006 6:36 am

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.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby tom8 » Mon Oct 09, 2006 2:24 pm

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.
tom8
 
Posts: 2
Joined: Sun Oct 08, 2006 9:24 am

Postby sheikhatif » Fri Feb 16, 2007 1:38 pm

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.
sheikhatif
 
Posts: 41
Joined: Sat Jul 15, 2006 12:58 pm
Location: Pakistan


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 102 guests