Sponsored Content
Top Forums Shell Programming and Scripting aborted due to compilation error Post 302259206 by mcraul on Monday 17th of November 2008 12:38:31 PM
Old 11-17-2008
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
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

BEGIN failed--compilation aborted

i m trying to run a command from diffrent login ,where i get following messages Empty compile time value given to use lib at /svm_wl1/billing/atai/rel/server/util/ataprocs line 73 Empty compile time value given to use lib at /svm_wl1/billing/atai/rel/server/util/ataprocs line 73 Empty... (1 Reply)
Discussion started by: abhijeetkul
1 Replies

2. Programming

Regarding compilation error.

Hi All, I facing the following compilation error; when I implementing the following logic. ostrstream ostr; ostr << (( scAxsm.getRecord( i ).getField( 2 ).getShort())%12)!=0?(( scAxsm.getRecord( i ).getField( 2 ).getShort())/12+1) : (( scAxsm.getRecord( i ).getField( 2 ).getShort())/12) <<... (1 Reply)
Discussion started by: sweta
1 Replies

3. Programming

compilation error

Hi, While trying compile a C++ file in UNIX with gcc whose make rule involves the usage of /usr/ccs/bin/as, I get the following error: /usr/ccs/bin/as: No such file or directory /usr/ccs/bin/as: error: write error on output file "<filename>.o" *** Error code 1 clearmake: Error: Build... (2 Replies)
Discussion started by: smanu
2 Replies

4. Programming

Compilation error

I am compiling a software xchm on solaris 10. First i run './configure' There is no error. But when i start compiling using 'gmake' following error shown /usr/local/include/wx-2.6/wx/x11/brush.h: In copy constructor `wxBrush::wxBrush(const wxBrush&)':... (3 Replies)
Discussion started by: mansoorulhaq
3 Replies

5. Linux

c++ compilation error

Hello every one, here i am attempting to compile a c++ module using gcc.it is throwing a error . error: ==== > make -S dummyCHARGP /usr/local/bin/gcc -g -DDEBUG -DMAT -I. -I/swtemp/usbs/cc/unix-ce/root/subsys/lib/Linux/ -I/opt/dce/include -I/opt/dce/include/dce ... (12 Replies)
Discussion started by: mannam srinivas
12 Replies

6. HP-UX

compilation error

hello everyone, here i am attempting to compile a c++ submodule.OS is HP-UX. here i am getting the following error. ====================================== "Make: Don't know how to make compile. Stop." =================================== could you pls somebody suggest why this error is... (2 Replies)
Discussion started by: mannam srinivas
2 Replies

7. Programming

Compilation error : Please help

state_field state_abvr = { "AL","ALABAMA", "AK","ALASKA", "AZ","ARIZONA", "AR","ARKANSAS", "CA","CALIFORNIA", "CO","COLORADO", "CT","CONNECTICUT", "DE","DELAWARE", "DC","DISTRICT-OF-COLUMBIA", "FL","FLORIDA", "GA","GEORGIA", "HI","HAWAII", "ID","IDAHO", "IL","ILLINOIS",... (1 Reply)
Discussion started by: jagan_kalluri
1 Replies

8. UNIX for Advanced & Expert Users

Problem due to Fork Error

Hi, I have developed a datastage job...which has many process running in parallel..but because of Fork Error my job is not working:( Can any body help me out to solve this Fork error problem.:rolleyes: My Os is SUNOS. IS there any setting in Unix through admin where in if i set some paramter... (8 Replies)
Discussion started by: Amey Joshi
8 Replies

9. Programming

Compilation Error

I am getting the below given errors for the following program though all the variables have been declared and used appropriately. Please Help. The environment is AIX. Error: ------ "gbsizeprofile.c", line 67.4: 1506-275 (S) Unexpected text 'void' encountered. "gbsizeprofile.c", line 67.10:... (2 Replies)
Discussion started by: yschd
2 Replies

10. Shell Programming and Scripting

bc syntax error due to sed

Hi all, before posting this questions i have looked up and found similar cases as the one i have but none of them had the answer i was lookink for. i have the next two commands (with their corresponding output) e1=$(grep KCAL input.OUT | sed 's/ FINAL HEAT OF FORMATION = ... (2 Replies)
Discussion started by: ezitoc
2 Replies
SLAPO-PBIND(5)							File Formats Manual						    SLAPO-PBIND(5)

NAME
slapo-pbind - proxy bind overlay to slapd SYNOPSIS
/etc/openldap/slapd.conf DESCRIPTION
The pbind overlay to slapd(8) forwards Simple Binds on a local database to a remote LDAP server instead of processing them locally. The remote connection is managed using an instance of the ldap backend. The pbind overlay uses a subset of the ldap backend's config directives. They are described in more detail in slapd-ldap(5). Note: this overlay is built into the ldap backend; it is not a separate module. overlay pbind This directive adds the proxy bind overlay to the current backend. The proxy bind overlay may be used with any backend, but it is mainly intended for use with local storage backends. uri <ldapurl> LDAP server to use. tls <TLS parameters> Specify the use of TLS. network-timeout <time> Set the network timeout. quarantine <quarantine parameters> Turns on quarantine of URIs that returned LDAP_UNAVAILABLE. FILES
/etc/openldap/slapd.conf default slapd configuration file SEE ALSO
slapd.conf(5), slapd-config(5), slapd-ldap(5), slapd(8). AUTHOR
Howard Chu OpenLDAP 2.4.28 2011/11/24 SLAPO-PBIND(5)
All times are GMT -4. The time now is 06:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy