Sponsored Content
Homework and Emergencies Homework & Coursework Questions Unix Shell Script to prompt customer for name etc Post 302464573 by SQLScript on Wednesday 20th of October 2010 12:44:29 PM
Old 10-20-2010
zaxxon asked:

Next step will be to think about how you will retrieve this info stored in that text file - there are several options how to do that. What field or string should be able to be searched for - how will the result be displayed etc. ie. should all infos be displayed or only some.

Reply:
Name, age and address should be displayed.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

script to change shell and prompt

I want to write a shell script which will change the current shell (say from csh to bsh) and my Prompt (say my name) as desired.pls help (1 Reply)
Discussion started by: SHYAM
1 Replies

2. UNIX for Dummies Questions & Answers

identify a customer under a UNIX server

Like many UNIX users, there is a small team that is connected to UNIX (under the same UNIX user) via putty from a Windows PC. Is there a way, once under UNIX, to know the address of the originating computer or anything that can differentiate initial users ? (7 Replies)
Discussion started by: popescu1954
7 Replies

3. AIX

echo in alias for Unix C-Shell Prompt

Hi, I want to set Unix prompt in C-Shell which required the break new line using alias. Ex. hostname : username : %> Now, it will be setup in .login file with alias alias cd 'cd \!* | set prompt="`hostname` : $USER : %>"' I'm unable to parse echo command or break which I can get %>... (1 Reply)
Discussion started by: buzzusa
1 Replies

4. Shell Programming and Scripting

echo in alias for Unix C-Shell Prompt

Hi, I want to set Unix prompt in C-Shell which required the break new line using alias. Ex. hostname : username : %> Now, it will be setup in .login file with alias alias cd 'cd \!* | set prompt="`hostname` : $USER : %>"' I'm unable to parse echo command or break which I can get %>... (3 Replies)
Discussion started by: buzzusa
3 Replies

5. Shell Programming and Scripting

Shell Script to prompt customer for name etc

How do I create a shell script called 'custinfo' to prompt a customer to enter and display back the following: name, age, address, phone number, product, price range. Thanks (1 Reply)
Discussion started by: SQLScript
1 Replies

6. UNIX for Dummies Questions & Answers

Shell Script to prompt customer for name etc

reposting How do I create a shell script called 'custinfo' to prompt a customer to enter and display back the following: name, age, address, phone number, product, price range. Thanks (1 Reply)
Discussion started by: SQLScript
1 Replies

7. Shell Programming and Scripting

Use Unix shell script to open Windows command prompt (cmd)

Hello, I work on Windows and I use Putty to access a remote UNIX server. I am trying to build a shell script that will have as main task to open the Windows command prompt (cmd) and run some Windows commands thereafter. The commands are actually file transfer commands that will download a file... (14 Replies)
Discussion started by: rookie2785
14 Replies

8. Homework & Coursework Questions

Shell Script Password Prompt

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I am trying to write a shell script that prompts the user for the password which is "lux" once the correct password... (4 Replies)
Discussion started by: Emin_Em
4 Replies

9. UNIX for Beginners Questions & Answers

Noob. shell script with prompt?

Hey Guys and Gals, Im a complete Noob to Unix. But recently have started working on a unix system for my PET/CT scanner. My scanner comes with a MOD drive for backup. I would like to back up to USB (its alot cheaper). But the only way to do so is by manually enterin the unix commands. Id like to... (13 Replies)
Discussion started by: TorresGXL
13 Replies
snmptable(1m)						  System Administration Commands					     snmptable(1m)

NAME
snmptable - obtain and display an SNMP table SYNOPSIS
/usr/sfw/bin/snmptable [common options] [-Cb] [-CB] [-Cb] [-Ch] [-CH] [-Ci] [-Cf string] [-Cw width] [agent] [table-oid] DESCRIPTION
The snmptable command is an SNMP application that repeatedly uses the SNMP GETNEXT or GETBULK requests to query for information on a net- work entity. The operand table-oid must specify an SNMP table. Both numeric and symbolic (string) OIDs are supported. The operand agent identifies a target SNMP agent that is instrumented to monitor manageable objects. At its simplest, the agent specifica- tion consists of a hostname or an IPv4 address. With such an address, the command attempts communication with the agent, using UDP/IPv4 to port 161 of the given target host. See snmpcmd(1M) for a full list of the possible formats for agent. OPTIONS
See snmpcmd(1M) for a list of common options. In addition to the common options, snmptable supports the options described below. -Cb Display only a brief heading. Any common prefix of the table field names is not displayed. -CB Use only GETNEXT, not GETBULK, requests to retrieve data. -Cf string The string string is used to separate table columns. With this option, each table entry is printed in compact form, using only the specified string to separate the columns. This option can be useful if you intend to import the table into a database. Without this option, the table is displayed in vertically aligned columns. -Ch Display only the column headings. -CH Do not display the column headings or the table name. Only raw data is displayed. -Ci Prepends the index of the entry to all printed lines. -Cw width Specifies the width of the lines when the table is printed. If a line is longer than width, lines are truncated to fit within width. EXAMPLES
Example 1: Retrieving an SNMP Table The following commands retrieve two-column SNMP tables. % snmptable -v 2c -c public localhost at.atTable SNMP table: at.atTable RFC1213-MIB::atTable atIfIndex atPhysAddress atNetAddress 1 8:0:20:20:0:ab 130.225.243.33 % snmptable -v 2c -c public -Cf + localhost at.atTable SNMP table: at.atTable atIfIndex+atPhysAddress+atNetAddress 1+8:0:20:20:0:ab+130.225.243.33 EXIT STATUS
0 Successful completion. 1 A usage syntax error. A usage message is displayed. Also used for timeout errors. 2 An error occurred while executing the command. An error message is displayed. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsmcmd | +-----------------------------+-----------------------------+ |Interface Stability |External | +-----------------------------+-----------------------------+ SEE ALSO
snmpcmd(1M), snmp_variables(4), attributes(5) BUGS
The test for table-oid actually specifying a table is not perfect. Note also that the test requires the defining MIB file to be loaded. SunOS 5.10 15 Jan 2004 snmptable(1m)
All times are GMT -4. The time now is 06:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy