How to call different programs based on requirement?
Hi Team,
I have four shell scripts and i need to put it into one script and call based on requirement.
For example:
If server is Linux and version of my software version is 5 then it should call 1st scipt
If server is Solaris and version of my software version is 6 then it should call 2nd scipt
If server is Linux and version of my software version is 6 then it should call 3rd scipt
So please help me how to merge all scripting files in one file. So i can place it on all servers, when i run it it will check Server os(by using uname -a) and my software version, then it calls the shell script which is written for that combination.Please let me know how to do it
Ok let me explain
i have a script which will give the output only for linux server and software of 5. This is my first script
i have a script which will give the output only for linux server and software of 6. This is my second script
i have a script which will give the output only for solaris server and software of 5. This is my third script
i have a script which will give the output only for solaris server and software of 6. This is my fourth script
so all are four different scripts. Now what i want is all should run with just one script. lets call this script as Onescript.sh
when i run this ./Onescript.sh it should check my conditions (server os and my software vesion) and it should call the script which i already placed. For example
if output is Linux and 6 then it should run my second script. I hope it clarifies
---------- Post updated at 09:38 AM ---------- Previous update was at 06:49 AM ----------
let me explain little detailed
when i run this ./Onescript.sh it should check my conditions (server os and my software vesion) and it should call the script which i already placed. For example
if output is Linux and 6 then it should run two.sh and gives the output. I hope it clarifies
Hi Guys,
I am having a script which needs to be iterated based on date passed and itrate based on no of months given.
#!/bin/bash
var_d=$1
months=$2
sh invoke_script var_d
i need to iterate the inside script something like below
sh invoke_script 170101
sh invoke_script... (4 Replies)
Hi
I have a text file (Input.txt) with two column entries separated by tab as given below:
aaa str1
bbb str2
cccccc str3
dddd str4
eee str3
ssss str2
sdf str3
hhh str1
fff str2
ccc str3
.....
.....
..... (1 Reply)
Hey guys,
Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries.
However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
Dear Members,
I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc.
I would like to create a script which will will call other scripts based on the request action.
Can we directly read from the REQUEST_ACTION... (2 Replies)
Are the programs written on schedulers ,thread library , process management, memory management, et al called systems programs ? How are they different from the programs that implement functions like open() , printf() , scanf() , read() .. they have a prefix sys_open, sys_close, sys_read etc , right... (1 Reply)
Hi,
i want to call two programs simultaneously from a currently running program so as to distribute the job and fasten the speed.
As of now I call the programs one after the other within the main program.
e.g.
`perl A.pl`;
`perl B.pl`;
how can I run the two paralelly?
urgent ... please... (1 Reply)
Hi,
I am a beginner in Perl programming. Now i need to call a C program from a perl program ...Can any one please help me and give any details how i can do this.
Thanks and Regards (3 Replies)
hi
i have ten program in C, and there are functions what are in all the programs.
so, i want to make a directory to store all the functions what are in all the programs, and call them from the C programs. (sending variables and values)
is that possible?¿? how ca i do that?¿?
any idea,... (1 Reply)