Search Results

Search: Posts Made By: baigmd
Forum: Programming 10-27-2009
28,490
Posted By baigmd
C program to execute Shell script with arguments
Hi,

Can anyone help with the below code. I am trying to execute Shell script with arguments in C program but it is giving errors.

#include <stdlib.h>
#include <stdio.h>

int main (int argc,...
1,485
Posted By baigmd
Doesn't work ---------- Post updated at...
Doesn't work

---------- Post updated at 02:30 AM ---------- Previous update was at 02:17 AM ----------

I got the solution ....thanks...sharing with you guys

#!/bin/sh
sname=$(basename...
Forum: Programming 10-27-2009
28,490
Posted By baigmd
C program to execute shell script
Hi,

Can anyone give me a sample code to execute shell script from C program.

Thanks
5,484
Posted By baigmd
C program to execute shell script
Hi,

Can anyone pls give a sample to execute a shell script from C program

Thanks
1,485
Posted By baigmd
My script is not giving result for 2 or more arguments
Hi,

I am new to shell scripting and my below script is not giving result for 2 or more arguments. Can anyone help pls.

#!/bin/sh
sname=$(basename $(readlink -nf $0))
echo "This is $sname,...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 02:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy