Sponsored Content
Full Discussion: Interactive UNIX shell query
Top Forums UNIX for Dummies Questions & Answers Interactive UNIX shell query Post 302657295 by leo_ultra_leo on Sunday 17th of June 2012 05:19:34 AM
Old 06-17-2012
Interactive UNIX shell query

Hi guys,

I've create 3 shells concerning my work, which named as 1.sh, 2.sh and 3.sh.
However, how can I make an interactive query for these shells just like the old (fdisk) in windows9x. I want to make an interface tells the user just like this:

Code:
Press 1 to execute "1.sh"
Press 2 to execute 2.sh. 
Press 3 to execute 3.sh

Press any key to exit.

Looking for your valued solutions guys...

Leo
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to hide user inputted text for interactive unix shell script?

Hi everybody, Do you know how to hide the text for interactive unix shell script? Just like the case for inputting password during logon. Patrick (1 Reply)
Discussion started by: patrickpang
1 Replies

2. UNIX for Dummies Questions & Answers

sql query results in unix shell script

Hi I want to get the a field from a SQL query into unix shell script variable. the whole situation is like this. 1. Opened a cursor to a table in DB2 databse. 2. Fetching individual rows with the help of cursor. 3. Each row has 4 fields. I want each of the field in individual shell... (1 Reply)
Discussion started by: skyineyes
1 Replies

3. Shell Programming and Scripting

isql query in unix shell script

Dear all I want to execute some isql command from unix shell script. Kindly suggest me. isql command mention below. isql -U -P use gdb_1 go select count (*) from table_x go (3 Replies)
Discussion started by: jaydeep_sadaria
3 Replies

4. Shell Programming and Scripting

A simple query on unix shell script

I want to write a script to go to particular path in file and run shell script from there. what will be shell script for the same. (2 Replies)
Discussion started by: shekhar_ssm
2 Replies

5. Shell Programming and Scripting

how to use data in unix text file as input to an sql query from shell

Hi, I have data in my text file something like this. adams robert ahmed gibbs I want to use this data line by line as input to an sql query which i run by connecting to an oracle database from shell. If you have code for similar scenario , please ehlp. I want the output of the sql query... (7 Replies)
Discussion started by: rdhanek
7 Replies

6. Homework & Coursework Questions

Help with Interactive / Non Interactive Shell script

Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines. It then prompts for deletion of the file. If user supplies arguments with the script , then it works on those files... (1 Reply)
Discussion started by: rits
1 Replies

7. UNIX for Dummies Questions & Answers

executing SQL query using unix shell script

I want to perform few post-session success tasks like update a status to 'true' in one of the sql database table, update date values to current system date in one of the configuration table in sql. How do i achieve this in a post session command?syntax with example will be helpful. (3 Replies)
Discussion started by: nathanvaithi
3 Replies

8. Shell Programming and Scripting

Query Oracle tables and return values to shell script that calls the query

Hi, I have a requirement as below which needs to be done viz UNIX shell script (1) I have to connect to an Oracle database (2) Exexute "SELECT field_status from table 1" query on one of the tables. (3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Discussion started by: balaeswari
6 Replies

9. Shell Programming and Scripting

Isql query in unix shell

Hi i want write a script for list of sysbase are having access or open. then i wrote like: USER="abc" PASS="xyz" SERVER="SCCS" DB="blue" WORK_DIR="/usr/home/ramakrishna" set -x isql -U${USER} -P${PASS} -S${SERVER}<<EOF>$WORK_DIR/output.log go use blue (database name) go use... (0 Replies)
Discussion started by: koti_rama
0 Replies

10. Shell Programming and Scripting

Unix shell script to query linux top consuming processes

Hi All, O/S: Linux 86x64 Red Hat I have a sql script that queries top consuming processes of Linux using TOP commnd. Now I need to automate this task and pass the top processes i.e., PID to the sql script through unix shell script. Could anyone please let me know how to achieve this. ... (2 Replies)
Discussion started by: a1_win
2 Replies
XTE(1)							      General Commands Manual							    XTE(1)

NAME
xte - Generates fake input using the XTest extension SYNOPSIS
xte [options] commands... DESCRIPTION
xte is a program that generates fake input using the XTest extension, more reliable than xse. OPTIONS
A summary of options is included below. -x display Send commands to remote X server. Note that some commands may not work correctly unless the display is on the console, e.g. the dis- play is currently controlled by the keyboard and mouse and not in the background. This seems to be a limitation of the XTest exten- sion. --help, -h Show summary of options. COMMANDS
key k Press and release key k keydown k Press key k down keyup k Release key k str string Do a bunch of key X events for each char in string mouseclick i Click mouse button i mousemove x y Move mouse to screen position x, y mousermove x y Move mouse relative from current location by x, y mousedown i Press mouse button i down mouseup i Release mouse button i sleep x Sleep x seconds usleep x Usleep x microseconds SOME USEFUL KEYS
This keys are case sensitive. Home Left Up Right Down Page_Up Page_Down End Return BackSpace Tab Escape Delete Shift_L Shift_R Control_L Control_R Meta_L Meta_R Alt_L Alt_R Multi_key SEE ALSO
pat2ppm(1), patextract(1), png2pat(1), rgb2pat(1), visgrep(1). AUTHOR
xte was written by Steve Slaven <bpk@hoopajoo.net>. LIMITATIONS
The str command doesn't support Unicode characters with more than two bytes. Further, character composing sequences to generate special charactes are limited to Multi_key plus two characters. The set of supported characters depends on the current keyboard layout. October 18, 2003 XTE(1)
All times are GMT -4. The time now is 07:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy