10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
OS version: RHEL 6.7
myTextFile.txt file is referred within Script1.sh script,
I only execute Script1.sh and I want the input variable to be passed inside myTextFile.txt . Any idea how I can do this ?
$ cat script1.sh
$ cat myTextFile.txt
Requirement1.... (4 Replies)
Discussion started by: kraljic
2. Shell Programming and Scripting
i have a scenario where in i have to monitor jobs which run in different servers, The job details(job name, host server, etc) are present in a dat file.
I have written a script a script which reads the details from the dat file and calls a local method where the job monitoring logic is present.... (2 Replies)
Discussion started by: abubucker0
3. Shell Programming and Scripting
Suppose I have a program that I've written that accepts input, ie this C++ program:
using namespace std;
cout << "Enter something:" << endl;
cin >> x;
cout << "You entered data" << endl;
Suppose that I have a text file,... (5 Replies)
Discussion started by: Chris J
4. Shell Programming and Scripting
Here is my question:
I want a shell script which I name as 'del', and can be used as del(string).
when run del(string), it will delete several directories at different locations in my system,like:
rm -fr /lustre/fs/scratch/user/$string
rm -fr /home/user/$string
rm -fr... (4 Replies)
Discussion started by: 1988PF
5. Shell Programming and Scripting
We are having a java server which can run on command line and once initiated, it will prompt options to enter from 0 to 5. The java program kickoff respective operation once number is entered between 0 to 5. However i want to always enter "1" and write another shell program wrapper to start... (4 Replies)
Discussion started by: surya5kn
6. Shell Programming and Scripting
Can anybody please help me with how can i call my java program from shell and also pass parameter along with it so that the program can interpret the value/int and update the database.
Thanks in advance
Neha (1 Reply)
Discussion started by: Neha Goyal
7. Shell Programming and Scripting
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... (4 Replies)
Discussion started by: momal
8. Shell Programming and Scripting
The subject is my question:
Can we pass an array of strings from a Perl Program to a Shell Script?
Please provide some sample code.
---------- Post updated at 11:52 PM ---------- Previous update was at 11:43 PM ----------
I got it.
Its here:... (0 Replies)
Discussion started by: som.nitk
In the below C code , i want to pass the array to a unix shel script.
my script should called as ex myscript 1,2,3
Arun (1 Reply)
Discussion started by: arunkumar_mca
10. Shell Programming and Scripting
How to pass the input to the execution script
ex: test1.sh contains
now I am calling test2.sh thro command line
and I want to pass the input to the script test1.sh from test2.sh ..I mean not... (6 Replies)
Discussion started by: vastare