![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FTP Warning message ? | maheshsri | Shell Programming and Scripting | 1 | 02-16-2006 12:21 PM |
| warning message | qphillips | UNIX for Dummies Questions & Answers | 0 | 09-28-2005 03:24 PM |
| warning message in SAM | mhbd | UNIX for Dummies Questions & Answers | 3 | 08-03-2005 09:00 AM |
| Warning Message. | Silver | Filesystems, Disks and Memory | 3 | 11-25-2002 05:45 AM |
| Warning message ioctl | Diana | UNIX Desktop for Dummies Questions & Answers | 1 | 05-01-2002 09:59 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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? |
|
||||
|
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
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|