PDA

View Full Version : Setting up UCJ 1.3 and AWK problem


Cali
04-24-2000, 12:00 PM
Hi there,

I'm new on this board and hopefully I'm adressing the right forum.

I'm trying to set up the script, and have (I think) succesfully manged to create the crontab file to run every 2 minutes. But when it runs the script (ucjdata.cgi) I get a message from AWK :

Your "cron" job on www.whatever (http://www.whatever)
/directories/cgi-bin/ucjdata.cgi

produced the following output:

awk: syntax error near line 1
awk: bailing out near line 1
awk: syntax error near line 1
awk: bailing out near line 1
awk: syntax error near line 1
awk: bailing out near line 1

What is it I'm doing wrong??? Anyone else had this experience?

My domain is hosted on a SunOS 5.7

Kindly,

Cali

dealer
04-25-2000, 02:56 AM
okay this is just a wild guess, cuz it has been a long time since this happened to me... but I would check your cron file, see if there is a space before the line that looks like 00,02,04... there should be no space before all that stuff... anyway, that is what happened to me, I had a space, I got weird awk errors and stuff... I found and took out the space, everything went fine... hope it helps ya...

Mike http://vegas-teens.com/cgi-bin/ucj/webmaster.cgi

Rimmer
04-25-2000, 03:49 AM
I think that might have been that ucjsettings wasn't uploaded in ASCII mode. Its been a long time since I've touched that version of the script too so my troubleshooting may be a little rusty http://adultwebmasterinfo.com/ubb/wink.gif

shane
04-25-2000, 04:35 AM
There is about 5 lines of code you need to change in ucjdata.cgi I have that script running on SUN server also
12172209

shane
04-25-2000, 04:54 AM
call me on ICQ

Cali
04-25-2000, 08:00 AM
shane:

GREAT! I'll get in touch in a couple of hours (I'm still at work right now)

Cali / ICQ:4561542

Rimmer
04-25-2000, 11:46 PM
Yep you're right Shane ... I remember doing that fix on your site http://adultwebmasterinfo.com/ubb/wink.gif

Cali
04-26-2000, 12:42 AM
Rimmer/shane:

Yup, and it's running now http://adultwebmasterinfo.com/ubb/smile.gif

Thanks alot mates!