![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pro*c compilation error | satvd | Shell Programming and Scripting | 1 | 05-21-2008 07:47 AM |
| pro*c compilation error | satvd | High Level Programming | 0 | 05-21-2008 06:04 AM |
| compilation error | smanu | High Level Programming | 2 | 12-29-2006 10:11 AM |
| Regarding compilation error. | sweta | High Level Programming | 1 | 12-10-2006 11:30 AM |
| BEGIN failed--compilation aborted | abhijeetkul | UNIX for Advanced & Expert Users | 1 | 03-21-2006 03:36 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
aborted due to compilation error
I wanted to edit the time for a cron job that cleans out the quarantine in mailscanner. Code:
etc/cron.daily/clean.quarantine I edited the file Code:
#!/usr/bin/perl # # IMPORTANT NOTE: # # Change the next line to 0 instead of 1 to enable this script. # By default it will be disabled and will not do anything. # #$disabled = 0; $quarantine_dir = '/var/spool/MailScanner/quarantine'; days_to_keep = 7; exit if $disabled; Changed the days to keep to 7 instead of 30 and then enabled the script. When I ran the script I got the following error Code:
cron.daily]# ./clean.quarantine Can't modify constant item in scalar assignment at ./clean.quarantine line 16, near "7;" Execution of ./clean.quarantine aborted due to compilation errors. What could of caused the script to bomb like that? FYI I used vi to edit the file. Thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|