11-12-2007
Help to eliminate a warning message
Hi all,
I'm trying to run this command in a script:
utenti_conn=`ssh $MYUSER@$MYTRAP01IP sudo cat /opt/accenture/trapwriter/data/TMDVOD\-1\-\`date \+\%Y\%m\%d\`\* /opt/accenture/trapwriter/data/TMDBTV\-1\-\`date \+\%Y\%m\%d\`\*|awk -F'|' '{print $7}'|sort |uniq|wc -l`
and in output I obtain a warning message as follow:
############################################################
# WARNING #
# The host is an Telecom Italia's asset; #
# the usage of this system constitutes agreement #
# with the company's policy and procedure. #
# The system is restricted for use; #
# all the actions on the system can always #
# be located and traceable. #
# All improper use of the system will be pursued #
# according to applicable statutory and/or contract laws. #
############################################################
7281
where 7281 is the only output I want to get out.
How can I eliminate this warning message?
10 More Discussions You Might Find Interesting
1. UNIX Desktop Questions & Answers
Has anyone over seen this message on bootup? When booting up, I get:
" Warning: lckdioctl: unknown ioctl cmd:5 ".
It scrolls down the screen 5 - 10 times, the I finally get a login. It is also posting to my syslog file. The system came up, but I am still getting the message... (1 Reply)
Discussion started by: Diana
1 Replies
2. Filesystems, Disks and Memory
I have had trouble with my PC, due to construction failure I from my dealer or a power-blast over the net I had a broken MotherBoard, CPU and Memory, So I had to get new ones.
Now I'm having a 2000Mhz CPU an ASUS P4S... {I think it's P4S500} and new DDR- memory My PC gives a warning-message... (3 Replies)
Discussion started by: Silver
3 Replies
3. UNIX for Dummies Questions & Answers
On running ‘Disk Devices’ tools under ‘Disks and File Systems’ option of System Administration Manager (SAM) in our UNIX Server (HP 9000 running HPUX B.11.11 U) a warning message appeared. The message that appeared reads as follows
“The Logical Volume Manager shows this device file,... (3 Replies)
Discussion started by: mhbd
3 Replies
4. UNIX for Dummies Questions & Answers
I have received a warning message, does anyone know what this means?
warning: userdel processing continues
resource: /var/opt1k/sco/unix/5.0.6 Ga/etx/group-t
could not be allocated due to :
cannot securly create new file. (0 Replies)
Discussion started by: qphillips
0 Replies
5. Shell Programming and Scripting
Hai..I have one question in unix Shell script.Following is the script
System Configuration: lcpu=4 mem=8192MB
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------
r b avm fre re pi po fr sr cy ... (1 Reply)
Discussion started by: sollin
1 Replies
6. Shell Programming and Scripting
Hi,
I wrote a ftp script to get some files from one server. So files transer is working properly. But I observed following Warning message for every transaction,
Can somebod give me explanation to this Warning message? I am confused?
109516 bytes received in 0.066 seconds (1659333 bytes/s)... (1 Reply)
Discussion started by: maheshsri
1 Replies
7. Shell Programming and Scripting
Hello,
I am teaching myself shell scripting and I was wondering if there was a way to rename a file and display a warning or prompt message? And if you had a file like
/home/me/blah/ for example, what are the ways to use the CD to get to /me?
Would it be ../home/me? Are there other ways to... (4 Replies)
Discussion started by: kris2010
4 Replies
8. Linux
Hi all,
I just configured automatic login between two servers following this article:
SSH login without password
When I execute the following command:
ssh REMOTE "/script/output.sh"I get:
Warning: This system is restricted to authorized users for business purposes.
Unauthorized... (2 Replies)
Discussion started by: Evan
2 Replies
9. HP-UX
Hi,
After i exit from crontab file using Esc+wq, i get a message like
" warning: commands will be executed using /usr/bin/sh "
Can somebody tell me what it means ?
Thank you (9 Replies)
Discussion started by: Maddy123
9 Replies
10. UNIX for Dummies Questions & Answers
I am trying to eliminate an error message from a script. This is the error message:
find: stat() error /usr/openv/netbackup/db/images/KUMAX: No such file or directory
if ];
then
runthiscommand=`su nxadm -c "ssh -t $new3 exec /bin/sh -s">/tmp/filew3 2>/tmp/error.txt<<EOF
... (1 Reply)
Discussion started by: newbie2010
1 Replies
LEARN ABOUT HPUX
cmrunserv
cmrunserv(1m) cmrunserv(1m)
NAME
cmrunserv - run a service from the high availability package run script
SYNOPSIS
cmrunserv [-v] service_name service_command_string
cmrunserv [-v] [-r restarts] service_name service_command_string
cmrunserv [-v] [-R] service_name service_command_string
DESCRIPTION
cmrunserv is used in the high availability package run script to run a service.
To start package's service, a user must either be superuser(UID=0), or have an access policy of FULL_ADMIN allowed in the cluster configu-
ration file. See access policy in cmquerycl(1m) or cmmakepkg(1m).
If the service process dies, cmrunserv updates the status of the service to down. The cluster software will recognize the change in status
and execute the normal package recovery sequence. This includes executing the package halt script, determining if the package can be run
on a different node, and, if so, executing the package run script on the new node.
Should the service_command be halted by the cmhaltserv command, a SIGTERM signal will be sent to the process. This executable or shell
script should be able to handle a SIGTERM signal and execute a graceful shutdown performing any cleanup necessary. If the process ignores
the SIGTERM, a SIGKILL will be sent to the process. If a SIGKILL is sent, the process will die immediately and will be unable to perform
any cleanup.
Options
cmrunserv supports the following options.
-v Verbose output will be displayed.
-r restarts
Indicates that the service should be automatically restarted by the cluster software if it fails, without halting the
package. restarts indicates how many times the service may fail before the package should be halted.
-R Indicates the service should be restarted an unlimited number of times if it fails.
service_name
Name of the service as it exists in the package configuration information.
service_command_string
Process string to be started. This includes the process name and any arguments necessary for the process to run. The
process name must be a full path, may be either a command name or a shell script, and must be executable.
RETURN VALUE
cmrunserv returns the following values:
0 Successful completion.
1 Command failed.
EXAMPLES
To run the service command string /var/opt/db/database1 under the service name db1, do the following:
# Run the process /var/opt/db/database1
cmrunserv db1 /var/opt/db/database1
This line should only be executed within a package run script.
AUTHOR
cmrunserv was developed by HP.
SEE ALSO
cmhaltserv(1m), cmquerycl(1m), cmmakepkg(1m), cmmodnet(1m).
Requires Optional Serviceguard Software cmrunserv(1m)