Help to eliminate a warning message


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help to eliminate a warning message
# 1  
Old 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?
# 2  
Old 11-12-2007
Code:
#!/bin/sh

somedata()
{
cat <<EOF
############################################################
# 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
EOF
}

filter()
{
   while read N
   do
       case "$N" in
       \#* )
             ;;
       * )
             echo "$N"
             ;;
       esac
   done
}

somedata | filter

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Eliminate error message (/dev/null)?

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

2. HP-UX

Warning message in HP-UNIX

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

3. Linux

SSH Warning Welcome message?

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

4. Shell Programming and Scripting

How do display a warning message?

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

5. Shell Programming and Scripting

FTP Warning message ?

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

6. Shell Programming and Scripting

How to Send warning message to user

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

7. UNIX for Dummies Questions & Answers

warning message

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

8. UNIX for Dummies Questions & Answers

warning message in SAM

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

9. Filesystems, Disks and Memory

Warning Message.

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

10. UNIX Desktop Questions & Answers

Warning message ioctl

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
Login or Register to Ask a Question