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 > Shell Programming and Scripting
.
google unix.com



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
Korn shell interactive script leonard905 Shell Programming and Scripting 3 08-02-2007 03:16 PM
Wrap Interactive Script meskue Shell Programming and Scripting 0 06-23-2006 07:21 PM
script to performm interactive ftp prash_b SUN Solaris 1 05-09-2006 09:21 AM
help with cshell script to read 1 or more lex files homerj546 Shell Programming and Scripting 1 04-18-2004 11:01 AM
Capture output from interactive script MizzGail Shell Programming and Scripting 6 04-04-2002 06:24 PM

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 09-06-2005
jimmynath jimmynath is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 11
How to make a cshell (csh) script interactive

Experts,

I tried to make my cshell script interactive by asking the user for password and trying to read the input using the "read" command. I have been unsuccessful so far. Do you have any idea ?

Thanks

Jim
  #2 (permalink)  
Old 09-07-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Code:
#!/bin/csh -f
stty -echo
echo -n "Password: "
set pword=$<
stty echo
echo ""
echo "You typed $pword"
  #3 (permalink)  
Old 09-07-2005
jimmynath jimmynath is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 11
Thanks a ton!!! I never expected it to be so easy. Anyways easy things are often hard. Thanks once again.

Jim
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 11:54 PM.


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