It was the 'trap' code... but... I still have no clue what's wrong with it....
For obvious reasons, this works now - commeted 'everything' out....
BUT I JUST DONT SEE AN ACTUAL ERROR HERE ?!?!
Maybe those 4 years not coding had a price...
Am I really THAT blind???
EDIT:
What confuses me the most is the fact the just the function above traps_save could be loaded and executed without an issue.
Both start with functionname(), yet... swarm.cleanup works like a charm, while traps_save stoped working...
EDIT2:
Thats kind of the reasons why I'm so confused, it the error was earlier... shouldnt it cause issues on other functions that were loaded prior to traps_save?
But it doesnt...
Hello all,
I want to create a script that polls every hour a directory for the existence of a file. The file I look for is a `token` dropped by an external process at the completion of a successful FTP process. I wrote this script `checkfile.ksh`:
#!/usr/bin/ksh
if ] then
mailx... (5 Replies)
Hi,
i am getting following syntax error ...kingly advice why is it coming ??
#!/bin/bash
find . -name "common.log"
if ; then
echo "1"
fi
Himnashu@home /bin
$ ./a.sh
./a.sh: line 7: syntax error near unexpected token `fi'
./a.sh: line 7: `fi' (9 Replies)
Hi,
When I run the below shell script I'm getting the error " syntax error near unexpected token `"
Script:
REM :: File Name : Refresh_OTL.bat
REM :: Parameters : %1 - Region
REM :: : %2 - Cube Type
REM :: :
REM :: Notes :
REM ============================== set ENVIRONMENT... (2 Replies)
Guys ,
This is an output of my script errored out for "Syntax error near unexpected token `(' " Can someone tell me whats wrong with my script.
Below is my original script pasted.
#!/bin/bash
Script Creation Date 01/21/2010
Author baraghun
... (7 Replies)
Hi all,
Am very new to Unix and am currently Involved in Migrating some Shell Scripts from AIX 4 to Solaris 10.
While using teh for loop am getting the below error:
$ echo $SHELL
/usr/bin/ksh
$ for file in $(ls *SEBE*)
syntax error: `$' unexpected
while the same works without issue on... (4 Replies)
So I am trying to convert my bash script into ksh, and this is what I have in the file so far:
#!/bin/ksh
login()
{
if
then
sendcmd BETA
else
sendcmd "$(xxd -c 32 -g 0 ${ZETA_ZETA} | awk '{print $2}')"
fi
}
But when I run it:
$ ./test.sh ... (1 Reply)
I'm going mad not being able to get this to work. im assuming its only a simple mistake but its driving me bonkers trying to find it.
Please if you can help me it would save me pulling my hair out!!
Thanks
#!/bin/bash -xv
#
#Config
name="TEST Server"
+ name='TEST Server'... (6 Replies)
unzip file.zip
if ] ; then
echo "Success"
else
echo "Some failure."
fi ;
I tried many time to detect the unzip error, but it keep show the syntax error wherever how I change the syntac. Hope someone can help me fix the issue, thanks.
Please use code tags next time for your code and... (5 Replies)
I have written this in my script but while running i am getting syntax error `(' unexpected.
unload to "$BACKUP_DIR/n_fac_fid-$clliname" select * from n_fac_fid where fac_accesskey in (select fac_accesskey From n_fac_ap_fid where ap_clli="$clliname");
Any help appreciated. (3 Replies)
I am getting this error Syntax error: `]' unexpected. Did I do something wrong with elif? Does ksh not like double brackets?
if ]; then
#echo hi
source ~/.bashrc;
elif ]; then
#echo hi
source ~/.kshrc;
fi (5 Replies)
Discussion started by: cokedude
5 Replies
LEARN ABOUT ULTRIX
eli
eli(8) System Manager's Manual eli(8)Name
eli - error log initialization program
Syntax
eli [ options ]
Description
The command initializes error logging. This command enables error logging of hardware and system-related error packets, or error messages,
from the kernel errorlog buffer. It can also disable error logging, reconfigure error logging parameters, or initialize the kernel error-
log buffer.
Options-d Disables error logging.
-e Enables error logging in multiuser mode.
-f Forces the subsequent option; the system will not prompt. This is the only command option you can use with another option.
-h Prints information about the command.
-i Initializes the kernel errorlog buffer. The previous contents of the errorlog buffer are lost.
-l Logs a one-line status message to the kernel errorlog buffer.
-n Only supported for local error logging. Disables logging error packets to disk by the daemon. High priority error messages continue
to be printed at the console. Note that error log packets can be viewed by using the option in real time, but are never written to
the disk. For this reason, this option is rarely used.
-q Suppresses the periodic display, on the console, of the missed error message that results from a full kernel errorlog buffer.
-r Reconfigures error logging. Use this option after changing the file.
-s Enables error logging in single-user mode.
-w Enables the missed error message to appear on the console every 15 minutes. This option is the opposite of
Examples
This example logs a one-line message into the errorlog file.
eli -f -l "This is a test message"
This example logs a message, up to and including the first new line, from the file
eli -f -l < myfile > /dev/null
Restrictions
You must have superuser privileges to use the command.
Only the -f option can be used with other options. You must use the syntax shown in the examples above.
Diagnostics
eli: Request Aborted.
The requested action was aborted. The reason for the aborted command is included with the output.
FilesSee Alsoelcsd.conf(5), elcsd(8), uerf(8)
Guide to the Error Logger
eli(8)