LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-09-2006, 06:01 PM   #1
shalomajay
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
Simple Script-Undesired out???


hi ya, pls can you take a quick & tell me what's wrong here. When i run this script it just prompts out ie. nothing happens.

thanks in advance :-)

regards,
Jo
**********************
#!/bin/bash
LOGDIR=/opt/ABWebs/DSS/DSS-RES/log
WORKINGDIR=/tmp/


cd $LOGDIR

echo Enter Name
read NNY

if [ -z $NNYY ];
then exit
fi


echo Enter time as hh:mm or hh:m[m-m] {For eg 13:4[1-8] for 13:41 and 13:48}
read TIME

if [ -z $TIME ];
then exit
fi


nice grep "$TIME:.*Output.* $NNY="DSS-RES-Performance.log>${WORKINGDIR}/RSSlog.txt

cd $WORKINGDIR

/bin/sed "s/Key=.*Output=/ /g" RRSlog.txt>${WORKINGDIR}/RRSlog1.txt

/usr/bin/uuencode RRSlog1.txt RRSlog1.txt |mail -s "EBS: $NNY/USD" mango@gmail.com


rm ${WORKINGDIR}/RRSlog.txt
rm ${WORKINGDIR}/RRSlog1.txt
 
Old 03-09-2006, 06:30 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Not much of scripter, but I do see you Enter Name to NNY and then if [ -z $NNYY ];
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables (with masq) troubleshooting, very simple script attached script and logs. xinu Linux - Networking 13 11-01-2007 04:19 AM
help with a simple script paul_mat Linux - Software 8 01-19-2006 12:46 PM
Need help with a simple script shell script WindowBreaker Linux - Software 2 12-15-2005 12:45 PM
IPTables Undesired NATing Wraezor Linux - Security 3 07-15-2005 05:09 AM
Simple C Shell script is not so simple elconde Programming 2 09-16-2001 11:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration