Sponsored Content
Full Discussion: Input to shell script
Top Forums Shell Programming and Scripting Input to shell script Post 302070115 by castlerock on Friday 31st of March 2006 01:39:27 PM
Old 03-31-2006
Thanks for the script....

What i am looking for is... after loging to unix machine if i type type the instance name and it has to set the oracle environment.

Many thanks,
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

single input shell script?

hey, i'm trying to write a shell script which accepts: operand operator operand then, the script would see which operator it is (using case) and calculate it... but i dont know how to do it correctly with $1 $2 $3... (eliminating accepting separate inputs) (1 Reply)
Discussion started by: quipy
1 Replies

2. UNIX for Dummies Questions & Answers

Masking input in a shell script

How do I prevent user input from being displayed in running script (e.g. when entering a password)? Thanx, Aaron (2 Replies)
Discussion started by: Spetnik
2 Replies

3. UNIX for Dummies Questions & Answers

Shell script with input parameter

Can anyone help me how to write a shell script which accepts input parameter. My requirement is as follows: I need to run a shell script with a input parameter, and inside the script i will create a file with this input parameter name. Please help me out to create such a shell script. ... (1 Reply)
Discussion started by: jhmr7
1 Replies

4. Shell Programming and Scripting

Shell script getting input from output

I have a program that can be run in terminal, when its run it either returns SSH OK or CRITICAL, how do i use the output in my script? good ./check_sh myserver SSH OK bad ./check_sh myserver CRITICAL I want to store it in a variable btw, SSH OK will give the variable $SSH=1 and if its... (1 Reply)
Discussion started by: aspect_p
1 Replies

5. Shell Programming and Scripting

shell script with input

Hi all, Here is my shell script #!/bin/sh echo "What is your name" read name echo "What is your surname" read surname echo "Your name is:${name} and your surname is:${surname}" How can I modify this script so that I input those two variables from console?Lets say my name is "first"... (3 Replies)
Discussion started by: c0mrade
3 Replies

6. UNIX for Dummies Questions & Answers

How to take input from excel for shell script.

i have both linux and windos installed on my pc . i want to take 1st column of excel as in input for my shell script .can anyone tell me how can i achive that. (1 Reply)
Discussion started by: nitin_aaa27
1 Replies

7. Shell Programming and Scripting

Input in shell script

Hello! Need help with the following: #!/bin/bash streamripper http://mp3-live.swr.de/swr2_m.m3u -D ~/RadioMitschnitt -l 200 > /dev/null 2>&1 I want to change the script so that it asks for an input for "-l 200" (means length 200sec) and starts then with the new value for "-l". Can I do this... (2 Replies)
Discussion started by: urug3170
2 Replies

8. Shell Programming and Scripting

User Input Shell Script

Hello I am trying to create a user input shell scipt. The objective is user should enter the circuit number and the input is saved in a log file. If the user does not enter anything then the question should prompt it until the circuit no. is entered. Can any one please correct the code below.... (3 Replies)
Discussion started by: sureshcisco
3 Replies

9. Shell Programming and Scripting

Shell script password input

hy, I wrote a simple shell script to monitor (with Nagios) a SNX VPN function. Here the Code snippet: testing=`ssh user@IP-address 'ls /etc/sysconfig/network-scripts/ifcfg-eth0'` #echo $testing if ; then echo "VPN is working" exit 0 else snx -s server -u user ... (2 Replies)
Discussion started by: tomies
2 Replies

10. Shell Programming and Scripting

Read input in shell script

I want to write a script that read the input to variable. I want the input screen to have 2 lines, where the values already input will appear above the input line for example if I want to input the words below: like love live life The screen will display like this: 1. Before any input... (8 Replies)
Discussion started by: aydj
8 Replies
ocs(1)							      General Commands Manual							    ocs(1)

NAME
ocs - creates and maintains the database for cscope on a recursive directory set SYNOPSIS
ocs [-x] [-f] [-q] [-u] DESCRIPTION
This manual page briefly documents ocs , a shell script wrapper that automates the creation and maintenance of a cscope(1) database on a recursive set of directories. Under normal circumstances, ocs generates a cscope database on a recursive group of directories starting from the current working directory, before launching cscope(1) in interactive mode. OPTIONS
-x Enable debugging. -f Force. Do not ask about regenerating 'TMP' lists (lists generated by ocs ), just do it; Allow the regeneration of 'CSD' (lists gen- erated by cscope(1) ) lists. -q Tell cscope to build a fast reverse index. Database disk space usage is doubled, but searching speed is increased. -u Request that the database be updated or regenerated. FILES
./cscope.rc If this is an executable shell script, it will be included in the body of ocs in order to override intenal filenames and other options. See the comments at the top of /usr/bin/ocs for more information. BUGS
None noted. SEE ALSO
cscope(1), /usr/bin/ocs. AUTHORS
This manpage originally prepared by Nick Rusnov <nick@grawk.net> for the Debian Project. The Debian Project June 2001 ocs(1)
All times are GMT -4. The time now is 10:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy