Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input- Output String in UNIX

Status
Not open for further replies.

olli2003

Technical User
Jan 31, 2003
93
DE
Hello friends

I'm a new guy in writing shell sripts,
so perhaps someone can help me in this.
I'm going to write a script in follwing way:

su - root
cd /usr/local/bin
tp import $ root <--- so by this row I'll get an ask for an input on the display. I'll type in a string there wich should fetch from the input into the shell script and the script should goes on...

> 12345

...so the shell script should import the string and goes on with:

su - root
cd /usr/local/bin
tp import 12345 root
Echo &quot;End of the Programm!&quot;

Thanks a lot!

Best Regards
Oliver
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top