03-25-2010
Quote:
Originally Posted by
ajaira
Homework?!
Nope Mr. Moderator, I reckon I'm too old to do homeworks at this age :-)
Well I wouldn't know since I don't see your birth date anywhere.
Also, if you're old enough to be past homework, one would reckon you're old enough to be able to read, too, and apply that ability to our
rules. Because there it states
Quote:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post or send a private message where your goal is to get an answer more quickly.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi
i would be grateful for some help on the following q.
"Write a script that takes two arguments. The first being a line of text, the second being your newly created file. The script should take the first argument and insert it into the very top ( the first line) of the file named in your... (6 Replies)
Discussion started by: mopimp
6 Replies
2. Shell Programming and Scripting
How to write a shell script tht takes two arguments.The first being a line of text,the second being your newly created file(x no:of lines and content of ur choice).
The script should take the first argument and insert it into the very top(the first line)of the file named in your second argument.... (3 Replies)
Discussion started by: bobby36
3 Replies
3. Shell Programming and Scripting
Does anybody know how to Accept a “userid” as a command line argument on a Unix Bourne Shell Script?
The output should be something like this:
User userid has a home directory of /path/directory
the default shell for this user is /path/shell (1 Reply)
Discussion started by: ajaira
1 Replies
4. UNIX for Advanced & Expert Users
Does anybody know how to Accept a “userid” as a command line argument on a Unix Bourne Shell Script?
The output should be something like this:
User userid has a home directory of /path/directory
the default shell for this user is /path/shell (1 Reply)
Discussion started by: ajaira
1 Replies
5. Shell Programming and Scripting
Hello All,
i am known to the limitation of different shells while passing more than 9 command line arguments
i just tried the example below
i do see my current shell is tcsh
echo $SHELL
/bin/tcsh
so if i make my script executable and run it
output is
... (6 Replies)
Discussion started by: Deepak Dutt
6 Replies
6. Shell Programming and Scripting
Hi... can anyone please help me out in using the CASE and command line argument in shell script... i am bit new to shell scripting...below i have explained my proble with example...
say i have an executable file with name 'new1.sh' and there are 3 functions in it a(), b() and c()....and there... (5 Replies)
Discussion started by: swap21783
5 Replies
7. Shell Programming and Scripting
Hi,
Get the following error when running a shell script with following statement.
Syntax error
at line 150 : `(' is not expected
150: declare -a VPO_SEV=(Normal Warning Minor Major Critical)
it runs fine using bash, so I guess the script should be using bash but is there a... (1 Reply)
Discussion started by: wilsonee
1 Replies
8. Programming
hi,
I am new in the shell script, and c programming with linux. I am looking to pass the arguments in c program that should be executed by the shell script.
e.g.
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv)
{ int i;
for (i=1;i<argc; i++)
{
... (2 Replies)
Discussion started by: sharlin
2 Replies
9. UNIX for Dummies Questions & Answers
Hi guys,
I am having trouble with this script. What i want it to do is to iterate all command line arguments in reverse order. The code below does this fine but i need the output to print the words on separate lines instead of one line:
#!/bin/bash
#Takes in the arguments and displays them... (7 Replies)
Discussion started by: pipeline2012
7 Replies
10. Shell Programming and Scripting
]I have a string like "/abc/cmind/def/pq/IC.2.4.6_main.64b/lnx86" and this string is given by user. But in this string instead of 64b user may passed 32 b an i need to parse this string and check wether its is 32b or 64 b and according to it i want to set appropriate flags.
How will i do this... (11 Replies)
Discussion started by: codecatcher
11 Replies
LEARN ABOUT DEBIAN
fence_zvm
fence_zvm(8) System Manager's Manual fence_zvm(8)
NAME
fence_zvm - I/O Fencing agent for GFS on s390 and zSeries VM clusters
SYNOPSIS
fence_zvm [OPTION]...
DESCRIPTION
fence_zvm is an I/O Fencing agent used on a GFS virtual machine in a s390 or zSeries VM cluster. It uses the s3270 program to log the
specified virtual machine out of VM. For fence_zvm to execute correctly, you must have s3270 in your PATH.
fence_zvm accepts options on the command line as well as from stdin. fence_node sends the options through stdin when it execs the agent.
fence_zvm can be run by itself with command line options which is useful for testing.
Vendor URL: http://www.ibm.com
OPTIONS
-a IPaddress
IP address or hostname of the Physical machine (required).
-h Print out a help message describing available options, then exit.
-u userid
userid of the virtual machine to fence (required).
-p password
password of the virtual machine to fence (required).
-S path
Full path to an executable to generate the password of the virtual machine to fence.
-q quiet mode, no output.
-V Print out a version message, then exit.
STDIN PARAMETERS
agent = < param >
This option is used by fence_node(8) and is ignored by fence_zvm.
ipaddr = < hostname | ip >
IP address or hostname of the Physical machine (required).
passwd = < param >
password of the virtual machine to fence (required).
passwd_script = < param >
Full path to an executable to generate the password of the virtual machine to fence.
userid = < param >
userid of the virtual machine to fence (required).
SEE ALSO
fence(8), fenced(8), fence_node(8)
fence_zvm(8)