![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error Message | chapmana | UNIX for Dummies Questions & Answers | 5 | 11-29-2006 11:41 AM |
| Error Message | RDM00 | UNIX for Dummies Questions & Answers | 2 | 10-06-2006 07:43 PM |
| Error message | ghuber | UNIX for Advanced & Expert Users | 1 | 11-14-2005 06:04 AM |
| error message vnc | Castelior | UNIX for Advanced & Expert Users | 3 | 10-21-2004 05:50 AM |
| error message | alisev | UNIX for Dummies Questions & Answers | 3 | 01-08-2002 05:01 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
I am new to unix, and trying to create a simple script called "nightjobs" set TODAY=`date +"%m%d%y"` echo -n "Please enter your Initials (3 alpha characters): " read init for GROUP in 4 5 do set logfile="/home/OPER/LOGS/nightjobs"$GROUP"-TODAY".log" set filnam="daily"$GROUP"-"$TODAY echo "Night jobs started: " $TODAY >$logfile < Here I have the commands to do the nightjobs > done When I try to run this script, I get the following error message: # ./nightjobs Please enter your Initials (3 alpha characters): KLN for: Command not found. do: Command not found. GROUP: Undefined variable. What am I doing wrong? Please help. My first line in the script is #!/bin/csh -f Thank you. Latha Nair |
|
||||
|
It works in ksh. I was trying to use csh because it can put the cursor right after the question
echo -n "Please enter your Initials (3 alpha characters): " and let the user type in their initials. When I used ksh, it takes the cursor to the next line. I know this is not a big deal, but I just wanted to leave the cursor right after the endquote. I will see if I can get any additional information on the 'foreach' statement. Thank you for your help. Latha Nair |
|
||||
|
Unfortunately (or fortunately), we don't have tombstones! We get cremated! So, I guess whatever I have to say would be cremated with me!
![]() My conclusion is that all the manuals, help routines , everything that is meant to make things easier...... makes sense only when you know the stuff (at least most of the time). I get better tips from people who have worked with the stuff (like I am doing now). I am slowly getting better, as each day goes by. We just have been up on Unix barely a month. I have only OpenVMS knowledge, which is NO GOOD at this point! I guess we have to roll with the punches (as they say?) I will keep a watch on this site for helpful information. I did go thru a lot of emails from folks like me - struggling with some day to day stuff. Thanks again.....for your help. It is much appreciated. Latha Nair ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|