The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-12-2007
idro idro is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 6
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 (permalink)  
Old 11-12-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0