![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| launching script via REXEC | JohnMurdoch | UNIX for Dummies Questions & Answers | 3 | 08-20-2008 06:42 AM |
| shell script with input | c0mrade | Shell Programming and Scripting | 3 | 07-09-2008 03:16 PM |
| Launching a new bash shell | gsd | Shell Programming and Scripting | 3 | 07-20-2006 05:30 AM |
| Input to shell script | castlerock | Shell Programming and Scripting | 3 | 04-03-2006 06:26 AM |
| Shell script with input parameter | jhmr7 | UNIX for Dummies Questions & Answers | 1 | 07-13-2005 01:04 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Launching a C program that needs input from a shell script
hi there,
i need some help, i am trying to run a script to launch a C program and a Java program but before running both I want to get a user input and then invoke both programs with input received. In the programs the inputs are not command line arguments. This is the code, after the java bof and the ./bof.out how can I pass my $UserInput argument to both programs? And save the output from the 2 programs into two new arguments? #!/bin/bash # # clear echo "Please enter a file name:" read UserInput echo "$UserInput" java bof ./bof Help is appreciated. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|