07-12-2007
Ambiguous and Command not found Error in UNIX
Hi,All
I wrote below script(Example1.sh) and i ran but it giveing error. it's excuted yesterday.
SYSTEM_TIME=`date '+%H:%M:%S'`
CMP_LOG_TIME=`head -1 runcmp-HINET.log`
CMP_ENDED1=`grep 'HINET CMP ended' runcmp-HINET.log`
CMP_ENDED2=`echo "HINET CMP ended"`
CMP_FAILED2=`echo "HINET CMP failed"`
FAILED_TIME1="0"
echo $SYSTEM_TIME
echo $CMP_ENDED1
Error:
77 DIT1_hnt@smmk183> Example1.sh
SYSTEM_TIME=06:40:13: Command not found
CMP_LOG_TIME=`head -1 runcmp-HINET.log`: Ambiguous
CMP_ENDED1=: Command not found
CMP_ENDED2=`echo "HINET CMP ended"`: Ambiguous
CMP_FAILED2=`echo "HINET CMP failed"`: Ambiguous
FAILED_TIME1=0: Command not found
SYSTEM_TIME: Undefined variable
please help me on this
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,All
I wrote below script(Example1.sh) and i ran but i got error. it's excuted yesterday.
SYSTEM_TIME=`date '+%H:%M:%S'`
CMP_LOG_TIME=`head -1 runcmp-HINET.log`
CMP_ENDED1=`grep 'HINET CMP ended' runcmp-HINET.log`
CMP_ENDED2=`echo "HINET CMP ended"`
CMP_FAILED2=`echo "HINET CMP... (2 Replies)
Discussion started by: koti_rama
2 Replies
2. Red Hat
Hi,
I am beginer to Linux. I have installed Redhat Linux AS 4.0 on my System.Later I created a User Oracle10g for Installing Oracle.Then I logged onto Oracle10g user and crated a Bash Profile and when I run that profile there was an error in that Profile. from then If I type any of Linux Command... (2 Replies)
Discussion started by: praswer
2 Replies
3. Shell Programming and Scripting
Hi everyone, While I was trying to do
DATE=`date +"%Y%m%d_%H%M%S"`
STARTLOG=$TUXSTDDIR/start_$DATE.log
tmboot -y > $STARTLOG 2>&1
I got an error i.e. Ambiguous output redirect error. Here the first part is to boot the account so there is nothing wrong with that.... (6 Replies)
Discussion started by: pareshan
6 Replies
4. Shell Programming and Scripting
This script has ambiguous redirect error.
...
cd $HOME
cd folder/work
# search all subfolders in work directory
find -mindepth 1 -maxdepth 1 -type d | while read directory
do
CUR_FOLDER="${directory#"./"}"
cd $CUR_FOLDER
chmod 644 *
for ff in *; do
if ; then
... (5 Replies)
Discussion started by: candyme
5 Replies
5. Shell Programming and Scripting
I came across the command string on https://www.unix.com/shell-programming-scripting/141885-awk-removing-data-before-after-pattern.html which was what I was looking for to be able to remove data before a certain pattern. However, outputting the result to a file seems to work on an individual basis... (4 Replies)
Discussion started by: HLee1981
4 Replies
6. UNIX for Dummies Questions & Answers
I have run the following command and getting $fout: Ambiguous.
set fout = `echo "$fnameLst" | awk '{gsub(/-dc*/,""); print}' | sort -u` (2 Replies)
Discussion started by: kristinu
2 Replies
7. Shell Programming and Scripting
Hello everybody,
I just took over this job from someone else and in the past this script they built worked but i recently upgraded from openSuSe 11.4 to 12.1
Now when i run the script i get an ambiguous error at line 25 (the first line after add() )
I have edited out the webpath and any... (1 Reply)
Discussion started by: gumbicus
1 Replies
8. Linux
Hi,
I need help on following linux bash script. When I linux commands for loop or while loop on individual file it runs great. but now I want the script to run on N number of files so it gives me ambiguous redirect error on line 12 and syntax error on line 22 : (pls help );
#!/bin/bash
#... (16 Replies)
Discussion started by: Madhusudan Das
16 Replies
9. Red Hat
String.h has the following operator overloading function which is an user defined
//declaration
int operator==(char *ch)
//definition
int String::operator==(char *ch)
{
if (strcmp(_text, ch) == 0)
{
return TRUE;
}
else
{
... (4 Replies)
Discussion started by: dany2704
4 Replies
TIMEDC(8) BSD System Manager's Manual TIMEDC(8)
NAME
timedc -- timed control program
SYNOPSIS
timedc [command [argument ...]]
DESCRIPTION
The timedc utility is used to control the operation of the timed(8) program. It may be used to:
o Measure the differences between machines' clocks,
o Find the location where the master time server is running,
o Enable or disable tracing of messages received by timed(8), and
o Perform various debugging actions.
Without any arguments, timedc will prompt for commands from the standard input. If arguments are supplied, timedc interprets the first argu-
ment as a command and the remaining arguments as parameters to the command. The standard input may be redirected causing timedc to read com-
mands from a file. Commands may be abbreviated; recognized commands are:
? [command ...]
help [command ...]
Print a short description of each command specified in the argument list, or, if no arguments are given, a list of the recognized
commands.
clockdiff host ...
Compute the differences between the clock of the host machine and the clocks of the machines given as arguments.
msite [host ...]
Show the master time server for specified host(s).
trace { on | off }
Enable or disable the tracing of incoming messages to timed(8) in the file /var/log/timed.log.
election host1 [host2 ...]
Asks the daemon on the target host to reset its "election" timers and to ensure that a time master has been elected.
quit Exit from timedc.
Other commands may be included for use in testing and debugging timed(8); the help command and the program source may be consulted for
details.
FILES
/var/log/timed.log tracing file for timed
/var/log/timed.masterlog log file for master timed
DIAGNOSTICS
?Ambiguous command abbreviation matches more than one command
?Invalid command no match found
?Privileged command command can be executed by root only
SEE ALSO
date(1), adjtime(2), icmp(4), timed(8)
R. Gusella and S. Zatti, TSP: The Time Synchronization Protocol for UNIX 4.3BSD.
HISTORY
The timedc utility appeared in 4.3BSD.
BSD
June 6, 1993 BSD