9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I ahve a program which has to delete a line in a file... if i run the sed command through shell prompt it works fine. But if run it using code its throwing error. May i know where i am doing wrong.
the file has 3 lines
# cat /root/.ssh/known_hosts... (4 Replies)
Discussion started by: vivek d r
4 Replies
2. Shell Programming and Scripting
Hi
I've gotten a plugin script that won't run. I keeps throwing an error at the following line.
for BARCODE_LINE in `cat ${TSP_FILEPATH_BARCODE_TXT} | grep "^barcode"`
do
#something
done
The error reads
... (3 Replies)
Discussion started by: jdilts
3 Replies
3. Shell Programming and Scripting
Hi All,
I need to create a script to monitor a dir for new files with ext .err and also it should b a non empty files. and perform a action or command .
We have a new ETL application that runs on a linux server, every times a etl fails it creates a .err file or updates the existing .err... (4 Replies)
Discussion started by: MAKHAN
4 Replies
4. UNIX for Dummies Questions & Answers
How to use Mailx command in unix shell script, its throwing below error
#!/bin/ksh
let x=3
If ; then
mailx -s “ $x is greater than 2” example@gmail.com << EOF
This is the message body
EOF
fi
its throwing error as syntax error at EOF... (10 Replies)
Discussion started by: only4satish
10 Replies
5. Shell Programming and Scripting
Hi All,
I am trying to run the below cmd thro' a script.
awk 'NR>=48&&NR<=(58-1)' $IN_FILE_NAME | tee $OUT_FILE_NAME
but I am getting an err while running the script. It gives the below err msg :
awk: syntax error near line 1
awk: bailing out near line 1
(P.S Note: When run the... (6 Replies)
Discussion started by: askumarece
6 Replies
6. UNIX for Advanced & Expert Users
Hi
How to prevent grep command from throwing a system trap(or returning error status) if No match is found in the specified file(s) ?
Consider this simple shell script:
#!/usr/bin/ksh
trap 'STATUS=$?;set +x;echo;echo error $STATUS at line nb $LINENO executing :\
`sed -n... (2 Replies)
Discussion started by: cool.aquarian
2 Replies
7. UNIX for Dummies Questions & Answers
Hi
We had 3 server -hp112and hp146 here hp112 is production server and hp146 is staging server used for load.
when i am trying to run follwing command
rcp abc hp112:/dnbusr1/gbid/gbid02 it's trowing an error :-
remshd: Login incorrect.
But same command is working wise versa -
rcp abc... (1 Reply)
Discussion started by: ashish_panpalia
1 Replies
8. Shell Programming and Scripting
hi frnds,
I have written a script as follows.
ssh username@servername "find $1 -type f -name $2 -mtime +1 -exec rm '{}' \;"
when i excute tis script i get error
FIND: Parameter format not correct
parameter 2 is the file name .. .
Thx in advance (6 Replies)
Discussion started by: vikramsnest
6 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I am just wondering if you could help me with this.
Suppose I have a file in SCCS a particular user updates the files aand puts back in sccs . when doing so it proments the user to enter the comment.
Basically what I'd expect is the user to enter the changes he or she has made ....... (3 Replies)
Discussion started by: rooh
3 Replies
sccs-help(1) User Commands sccs-help(1)
NAME
sccs-help, help - ask for help regarding SCCS error or warning messages
SYNOPSIS
/usr/ccs/bin/help [argument...]
DESCRIPTION
The help utility retrieves information to further explain errors messages and warnings from SCCS commands. It also provides some informa-
tion about SCCS command usage. If no arguments are given, help prompts for one.
An argument may be a message number (which normally appears in parentheses following each SCCS error or warning message), or an SCCS com-
mand name. help responds with an explanation of the message or a usage line for the command.
When all else fails, try `/usr/ccs/bin/help stuck'.
FILES
/usr/lib/help directory containing files of message text
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWsprot |
+-----------------------------+-----------------------------+
SEE ALSO
sccs(1), sccs-admin(1), sccs-cdc(1), sccs-comb(1), sccs-delta(1), sccs-get(1), sccs-prs(1), sccs-prt(1), sccs-rmdel(1), sccs-sact(1), sccs-
sccsdiff(1), sccs-unget(1), sccs-val(1), what(1), sccsfile(4), attributes(5)
SunOS 5.10 24 Feb 1998 sccs-help(1)