please point out what's wrong with my script. im feeding it a list containing fqdn, sit should ssh into each and verify that atleast one of its virtual backup ip resolves into one of its virtual hostnames .. anyway the objective shows in the script... however, im having problems in the
innermost if condition.. "else" wont get executed.
Hi, first post, so hello to all.
I have a Bash scripting problem that is driving me a bit nutty.
It involves a program called 'convert' which is part of the ImageMagick collection.
Normal usage from the commandline is:
$ convert -resize 120x120 inputfile.jpg outputfile.jpg
This is... (7 Replies)
Hi, I am a nbee to Unix, I have used following script to check my tomcat is running or not and restart if it down. but actually it restart my tomcat each time running even my tomcat still running fine:
Script that can run a check and perform an action if the check fails
... (1 Reply)
Hi All,
I am trying to do a script that prompts the user for the PID and it displays information about that process, this is what I have, but is not working:
echo "Please enter your PID:"
read pid
case $pid in
ps | grep $pid
esac
done
* I also needed that this... (1 Reply)
Good day all
I have a UNIX script that I created to set a couple of environment variables for my Oracle installation.
When I initially run the script, I get the correct values on the inbuilt echo command but when the script completes and I issue an echo statement
echo $ORACLE_SID, the... (9 Replies)
Hi...
I am fed up in file handing with array for comparing....
1st I want save first 2 columns of file 1
I tried like this,,
{getline< "file1";ln=$1; lt=$2}then I read second file's 1st and 2nd column..and saved like this
and small calculation and initialization
var1 =$1
var2 =$2... (5 Replies)
Hi ! all I am just trying to check range in my datafile
pls tell me why its resulting wrong
admin@IEEE:~/Desktop$ cat test.txt
0 28.4
5 28.4
10 28.4
15 28.5
20 28.5
25 28.6
30 28.6
35 28.7
40 28.7
45 28.7
50 28.8
55 28.8
60 28.8
65 28.1... (2 Replies)
I have a file
cat <<EOF > /tmp/test
Line one
Line two
Line three
EOF
Now I am trying to get the exit stat ($?) of 1 if any text is found and 0 if any text is not found using grep, i.e. just reversing the exit status of grep
# (snippet 1) this one is not working!!! retval $?... (4 Replies)
I want to let sleep 3 in the background and echo $i
pkglists="a b c d e f g"
f()
{
local i
set -- $pkglists
&& ((i +=2)) && sleep 3 &;echo $i
}
f (3 Replies)
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
Discussion started by: siegfried
3 Replies
LEARN ABOUT SUNOS
script
script(1) User Commands script(1)NAME
script - make record of a terminal session
SYNOPSIS
script [-a] [filename]
DESCRIPTION
The script utility makes a record of everything printed on your screen. The record is written to filename. If no file name is given, the
record is saved in the file typescript. See WARNINGS.
The script command forks and creates a sub-shell, according to the value of $SHELL, and records the text from this session. The script ends
when the forked shell exits or when Control-d is typed.
OPTIONS
The following option is supported:
-a Appends the session record to filename, rather than overwriting it.
NOTES
script places everything that appears on the screen in filename, including prompts.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|CSI |Enabled |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5)WARNINGS
script can pose a security risk when used in directories that are writable by other users (for example, /tmp), especially when run by a
privileged user, that is, root. Be sure that typescript is not a link before running script.
SunOS 5.10 30 Jan 2004 script(1)