Prompt as input


 
Thread Tools Search this Thread
Operating Systems Solaris Prompt as input
# 1  
Old 03-21-2011
Prompt as input

Hi (again)

This time I need to prompt user to enter a string which is actually a file name which will be used within the script to run

.eg

./script

PLease enter date

I then need to use this date in the script. I know its somthing to do with assigning $<xxxx> but unsure how to do it.

Hope this makes sense
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Unable to move from rsc prompt to ok prompt

Hi, on sunfire v890 unable to move from rsc prompt to ok prompt, i have executed the command break. (9 Replies)
Discussion started by: manoj.solaris
9 Replies

2. Shell Programming and Scripting

Read input files and merge them in given order and write them to input one param or one file

Dear Friends, I am looking for a shell script to merge input files into one file .. here is my idea: 1st paramter would be outfile file (all input files content) read all input files and merge them to input param 1 ex: if I pass 6 file names to the script then 1st file name as output file... (4 Replies)
Discussion started by: hyd1234
4 Replies

3. UNIX for Dummies Questions & Answers

How to Change the % prompt to - prompt in UNIX?

how to Change the % prompt to - prompt in unix :wall: ---------- Post updated at 07:40 AM ---------- Previous update was at 07:38 AM ---------- How To display the last modification time of any file in unix ---------- Post updated at 07:40 AM ---------- Previous update was at 07:40 AM... (2 Replies)
Discussion started by: manjiri sawant
2 Replies

4. Shell Programming and Scripting

Using read to prompt for editable user input in Bash 3

Below is a simple script to prompt for user input while suggesting an editable default value at the prompt: shortname=user1 read -e -i $shortname -p "Please enter the username you would like to add: " input USERNAME="${input:-$shortname}" Please enter the username you would like to add:... (3 Replies)
Discussion started by: woodson2
3 Replies

5. Shell Programming and Scripting

Is it possible to prompt for input if not given on command line?

I have a script built that takes the standard inputs $1 $2 $3 after the name and parses some data. hexsite=`echo "obase=16;$1"|bc` hexfix=$(printf "%.3X" 0x$hexsite) if || ;then type=33 elif || ;then type=59 elif ;then type=99 else type=00 fi cat /directory/*.2012$3*| I am... (8 Replies)
Discussion started by: PCGameGuy
8 Replies

6. Shell Programming and Scripting

Plink batch input menu prompt

I am automating voicemail backups and can use plink to login, but I want to pass input to the menu, not the linux shell: This will log me in..... c:\Batch>plink -ssh 10.12.99.64 -l root -pw 9999 I'd like to input an "S" with a "-m" remote command file for this, etc... MAIN MENU... (2 Replies)
Discussion started by: JimCasagrande
2 Replies

7. UNIX for Advanced & Expert Users

Entire Input command not visible in Unix prompt

Hi, While typing the Unix command, entire command is not visible.When the input command is long, it is not visible. I want the entire command to be displayed when i type it. Please help to resolve this issue. Thanks Sampath (7 Replies)
Discussion started by: sampath.giri
7 Replies

8. UNIX for Advanced & Expert Users

Help-prompt for path and take this as input in find command

HI , I am trying to wite a script that will prompt me saying " what is path that you want to find ?". once i specify the path, the script should put this path in the find command mentioned below and execute the script: find <path> -ctime +200 -type f -exec ls -l {} \; for example : ... (7 Replies)
Discussion started by: bsandeep_80
7 Replies

9. Shell Programming and Scripting

Can give the input to prompt using shell script

Hi, I want to send input to promt from shell script, this thing is possible. I give the one command `/usr/share/ssl/misc/CA -newreq` it needs some user input like password etc., but i need this input also from shell script but it does not works. `/usr/share/ssl/misc/CA -newreq` <<EOF... (2 Replies)
Discussion started by: Vaibhav Agarwal
2 Replies

10. Shell Programming and Scripting

How to prompt for input & accept input in ONE line

hi, am a new learner to shell programming. i have a script which will prompt for user to key in their name & display their name afterwards. script ===== echo "Pls enter your name:" read name echo "Your name is $name." output ===== Pls enter your name: Bob Your name is Bob. what... (2 Replies)
Discussion started by: newbie168
2 Replies
Login or Register to Ask a Question
scamp(8)						      System Manager's Manual							  scamp(8)

Name
       scamp - System Configuration and Management Program

Syntax
       /usr/etc/scamp

Description
       The  utility  is a menu-driven program that helps you set up and manage your system.  scamp allows you to manage user accounts and software
       subsets, and to perform basic system management tasks such as setting the system date and time, and rebooting the system.

       uses the directory to store all of it's files.

Restrictions
       This utility is installed in the directory.  To have access to while in single-user mode the partition must be mounted.

Examples
       When is invoked a page of welcome text first displayed.	After you hit a carriage return the Main Menu is displayed.

		       *****************************
			 ULTRIX  SCAMP	MAIN  MENU
		       *****************************

		       1 - User Account Management
		       2 - Network Setup Information
		       3 - Terminal Setup
		       4 - Modem Setup
		       5 - Printer Setup
		       6 - Install/Remove Software Subsets
		       7 - License Management Facility - LMF
		       8 - System Management Services

		       0 - Exit

		       Enter your choice:
       At the 'Enter your choice:' prompt you enter the number that is beside the task you would like to perform.  To enter a  Product	Authoriza-
       tion Key (PAK) you use the 'License Management Facility - LMF' menu item, so you would enter a 7 at the prompt.

       Each  of  the  Main  Menu items have one or more screenfulls of information that could be displayed.  To exit to the previous screen, or to
       exit the utility when at Main Menu, enter a 0 at the prompt.

Files
See Also
       Guide to SCAMP

																	  scamp(8)