I'm adding additional route on hpux 11.22 and syntax seems to be wrong to me. However the application works and everything else.
Old systax in netconf file.
LANCONFIG_ARGS=ether
ROUTE_GATEWAY=xxx.xx.xx.xx
ROUTE_COUNT=1
ROUTE_DESTINATION=default
Note: There are no double Quotations? is this... (0 Replies)
Im running reports on a unix box.
i run df -g and get the disk usage results, what i want to do is hopefully run an if statement or of the sort to highlight any percentages over 80 %.
I also would like to run an errpt and also highlight any errors for the current days date.
Could the results... (1 Reply)
In my ksh script, if the conditions of a if statement are true, then do nothing; otherwise, execute some commands.
How do I write the "do nothing" statement in the following example?
Example:
if (( "$x"="1" && "$y"="a" && "$z"="happy" ))
then
do nothing
else
command
command
fi... (3 Replies)
Hello folks,
I am relatively new to UNIX shell scripting but I have just written this small for loop script below:
var="100 300"
for ctr in ${var}
do
echo "$ctr --- $var"
done
exit 0
But when I am running the script I am getting the error below:
' unexpected: syntax error at line 4 :... (3 Replies)
Hi All,
I am using Unix ksh script.
I need to insert values to a table using the o/p from a slelect statement.
Can anybody Help!
My script looks like tihs.
---`sqlplus -s username/password@SID << EOF
set heading off
set feedback off
set pages 0
insert into ${TB_NAME}_D... (2 Replies)
Hi
I'm currently writing a script that looks at the contents of a file and returns a value, based on a user input-
do
cat ~/LAFILE | grep "$SYSTEM" | grep "$USERNAME"
if ! grep user /etc/passwd >/dev/null 2>&1
then
echo "did not find user"
else
echo "found user"
fi
break... (4 Replies)
I'm trying to do a for statement within a while read line statement and it's not working. What is wrong with this?
while read line
do
find . -type f -name "*.$line*" -exec gunzip {} \;
for file in */*.$line*;
do grep ERROR "*.$file*" > error.$line.log;
done
find . -type f -name... (1 Reply)
greetings,
the goal below is to test the supplied options/arguments for validity. if the matlab option is not supplied with the additional option of a file then exit. however if matlab IS supplied with its companion option of a file OR batch is the only option then continue on. it's clear the -a... (3 Replies)
I am new to Unix and have been given the task of modifying a current script. Most of the programming I do is Oracle based, not unix.
That being said when I run my current script i get the following (not sure if this is an actual error or if it is just being informative)
./test_cron.s: cdev:... (3 Replies)
Hi folks,
I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex.
I have a bunch of update statements with all columns in a file which I need to convert into insert statements.
UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)
Discussion started by: dev123
0 Replies
LEARN ABOUT OPENDARWIN
script
SCRIPT(1) BSD General Commands Manual SCRIPT(1)NAME
script -- make typescript of terminal session
SYNOPSIS
script [-a] [-k] [-q] [-t time] [file [command ...]]
DESCRIPTION
The script utility makes a typescript of everything printed on your terminal. It is useful for students who need a hardcopy record of an
interactive session as proof of an assignment, as the typescript file can be printed out later with lpr(1).
If the argument file is given, script saves all dialogue in file. If no file name is given, the typescript is saved in the file typescript.
If the argument command ... is given, script will run the specified command with an optional argument vector instead of an interactive shell.
Options:
-a Append the output to file or typescript, retaining the prior contents.
-k Log keys sent to program as well as output.
-q Run in quiet mode, omit the start and stop status messages.
-t time Specify time interval between flushing script output file. A value of 0 causes script to flush for every character I/O event. The
default interval is 30 seconds.
The script ends when the forked shell (or command) exits (a control-D to exit the Bourne shell (sh(1)), and exit, logout or control-d (if
ignoreeof is not set) for the C-shell, csh(1)).
Certain interactive commands, such as vi(1), create garbage in the typescript file. The script utility works best with commands that do not
manipulate the screen. The results are meant to emulate a hardcopy terminal, not an addressable one.
ENVIRONMENT
The following environment variable is utilized by script:
SHELL If the variable SHELL exists, the shell forked by script will be that shell. If SHELL is not set, the Bourne shell is assumed. (Most
shells set this variable automatically).
SEE ALSO csh(1) (for the history mechanism).
HISTORY
The script command appeared in 3.0BSD.
BUGS
The script utility places everything in the log file, including linefeeds and backspaces. This is not what the naive user expects.
It is not possible to specify a command without also naming the script file because of argument parsing compatibility issues.
When running in -k mode, echo cancelling is far from ideal. The slave terminal mode is checked for ECHO mode to check when to avoid manual
echo logging. This does not work when in a raw mode where the program being run is doing manual echo.
BSD June 6, 1993 BSD