Results 1 to 2 of 2
Hi Friends,
I want a script(batch or ant) that should run on linux and it should ask the user to input a value and that value should be stored in ...
- 01-19-2007 #1Just Joined!
- Join Date
- Jul 2005
- Posts
- 11
Very simple script needed
Hi Friends,
I want a script(batch or ant) that should run on linux and it should ask the user to input a value and that value should be stored in a text file.
Does anyone know how to accomplish this...would appreciate that...any links??
Thanks
- 01-19-2007 #2
Batch or Ant? Firstly, Batch is MS-DOS scripting, and is unique to Windows. Ant, are you referring to the Java-installation-doohickey? If so, not sure what you mean...
Are you familiar at all with the Bash shell? The command to print something to the screen is 'echo', and to read input is 'read'. You can then use I/O redirection to echo to a file.
Here is a basic guide to Bash scripting:
http://tldp.org/LDP/Bash-Beginners-G...ers-Guide.htmlDISTRO=Arch
Registered Linux User #388732


Reply With Quote