Hi,
I made a build script for the product I am working on.
The script was made in the /bin/sh shell.
My first line in the script (after the #! /bin/sh and following # lines ) were,
if ; then
/bin/sh
fi;
It works well with my sh shell. I run the script as
sh build.sh
Now I... (9 Replies)
All
Can you help me to validate a variable only for string and digit. That is
variable should either fully alphabets or digits.
Please send me result to my mail id also: REMOVED
Thanx in advance
Regards
Deepak Xavier (1 Reply)
Can any one let me know like how cn i set an label or number for each function whihc are there in an shells script:
for example
cd /opt/qcom/test/
function1()
function2()
function3()
-------
i ahe a script like this .now i want to count each of this function like 1, 2, 3,............... (3 Replies)
Hi,
Is it possible to use multiple shells in one script.
There are sometimes we need to club shell specific commands in single script.
for example in bash mode we use -e with echo to use Escape sequence but in ksh it is not required. How to tell a UNIX command to run in a specific shell.
... (2 Replies)
Hi
This is the list file that i have :
The files is more than this.
I will rename one by one file become like this :
So just change the time stamp 200906 become 200905.
Is it possible using script ?
Thanks (3 Replies)
I have the following script running with nohup on one of my servers:
#!/bin/bash
#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
#set log number
#i=1
#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
#Check if log exits, if so incrememnt log number up so we don't clobber
#while... (8 Replies)
Hi,
Getting below error on executing the shell script which initiates sqlplus
How to set oracle enviornment variables in the shell script ?
With Regards (3 Replies)
Hi all,
This is the first time i am using expect.
I am trying to call a function with in the shell script. The function will shh to a new server and will pass the password using expect and send. I need help in calling the fuction i am getting follaowing errors...
here the script
... (8 Replies)
Hi to all,
i have the following problem...
i want to run three commands in a script in different shells... the first command is running always and is needed for the second on to run properly... example
# Procedure 1
xterm -e exec1 arg1 arg2
# Procedure 2
xterm -e exec2 arg1 arg2
#... (6 Replies)
I appreciate if someone answer this question for my learning purpose:
Given a filename structure of a COUNTRY CODE, file type, date (YYYYMMDD) and two digit attempt number with an extension of ".dat", write a UNIX shells script to echo out the date value.
Example: ... (1 Reply)
Discussion started by: shumail
1 Replies
LEARN ABOUT HPUX
cmgetpkgenv
cmgetpkgenv(1m)cmgetpkgenv(1m)NAME
cmgetpkgenv - get the configured environment for a high availability package
SYNOPSIS
cmgetpkgenv package_name
DESCRIPTION
cmgetpkgenv retrieves configured attributes of the high availability Serviceguard package named by package_name and writes them to the
standard output in form usable by the POSIX Shell. It is used by the package run and halt script to determine the packages's start and stop
actions.
The output for a pre-11.18 style non CVM Version 4.1 package does not display any configured attributes. The command will display an infor-
mational message and return an error condition occurred.
To use cmgetpkgenv, a user must either be a superuser with effective user ID of zero (see id(1) and su(1)), or have an access policy of
MONITOR allowed in the cluster or package configuration file. See access policy in cmquerycl(1m) or cmmakepkg(1m)RETURN VALUE
cmgetpkgenv returns the following value:
0 Successful completion.
>0 Error condition occurred.
AUTHOR
cmgetpkgenv was developed by HP.
SEE ALSO cmhaltpkg(1m), cmmakepkg(1m), cmquerycl(1m), cmrunpkg(1m), cmviewcl(1m), sh(1).
Requires Optional Serviceguard Software cmgetpkgenv(1m)