Greetings,
I am wrapping the monitoring commands like vmstat, sar, iostat and call via arguments
I want ./unix_stats.sh -v vmstat -p <SEC> -d <Duration>
to give vmstat values, and similarly iostat etc.,.
Also if I give ./unix_stats.sh -v vmstat -i iostat -p <SEC> -d <Duration> should give... (4 Replies)
Hi all,
I'm new to Shell scripting. In my shell script for Bourne shell, the script accepts a date parameter which is optional. If the value is supplied, the supplied value should be assigned to a variable. If not, the current date will be assigned to the variable. My script is like this.
#!... (9 Replies)
public class HelloWorld {
public static void main(String args) {
System.out.println("Welcome, master");
}
}
and I compiled using
javac HelloWorld.java
]
Suppose that I execute the following command directly from the shell:
java -XX:OnError="gdb - %p" HelloWorld
Then it works... (8 Replies)
Hi ,
I have a piece of code ...wherein I need to assign the following ...
1) A command line argument to a variable
e.g origCount=ARGV
2) A unix command to a variable
e.g result=`wc -l testFile.txt`
in my awk shell script
When I do this :
print "origCount" origCount --> I get the... (0 Replies)
I'm having problems with bash scripts. If a bash script is called with no arguments, I always get "PHIST=!" as the first argument (i.e. this is what $1 equals). Why? Where does this come from, and how can I fix it? Nothing in the bash man pages refer to this mysterious default argument. (2 Replies)
If ($argv == “-debug”) then
Echo “in loop”
Endif
But this is not working. If I modify this code and remove “-“, then it works.
Similarly I am getting problem using grep command also
Grep “-debug” Filename
Can someone please help me on how to resolve these... (1 Reply)
I have a huge set of files (with extension .common) in my directory around 2 million. When I run this script on my Linux with BASH, I get /bin/awk: Argument list too long
awk -F'\t' '
NR == FNR { a=NR }
NR != FNR {
sub(".common", "", FILENAME)
print a, FILENAME, $1
}
'... (1 Reply)
I'm trying to write a bash script called YN that looks like the following
YN "Specify a question" "doThis" "doThat"
where "doThis" will be executed if the answer is "y", otherwise "doThat".
For example
YN "Do you want to list the file dog?" "ls -al dog" ""
Here's my attempt... (3 Replies)
Discussion started by: LeoKSimon
3 Replies
LEARN ABOUT OSF1
fingerd
fingerd(8) System Manager's Manual fingerd(8)NAME
fingerd - The user information server for networks
SYNOPSIS
fingerd [-s]
The fingerd program allows users to get information about remote systems or users when they execute; for example, finger user@host.
FLAGS
Turns on socket level debugging.
DESCRIPTION
The fingerd program is a protocol that provides an interface to the finger(1) command. By default, the fingerd program is disabled. To
enable it, edit the /etc/inetd.conf file, uncomment the line containing the finger service name, and restart Internet services by issuing
the /usr/sbin/rcinet restart command.
After it is enabled, the fingerd program is invoked by inetd(8), which listens for finger requests at port 79. When it receives control,
fingerd reads a single command line, terminated by a newline, and passes it to the finger command, which generates a report. The fingerd
program closes its port connection when output from finger is finished.
FILES
Specifies the command path User database who file Plans for requested user Projects for requested user whois command who command
RELATED INFORMATION
Commands: finger(1), inetd(8), syslogd(8), who(1)
Specifications: RFC742 delim off
fingerd(8)