Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Making a C library function calling a shell script

$
0
0
Hi ,
I have made a shell script for sending files from one server to another using scp

it has following syntax

Code:

script logicalfilename physicalfilename server
I want to call this script through a pro c function like

Code:

send(logicalfilename,phyicalfilename,server)
A c function can call a shell script through system function , but my requirement here
is that to include this function send, permanently with c library i.e like printf and scanf in c.

Please suggest how to make such a function and include it in library permanently

also is there a difference between pro c and c functions library or they are same, i want a function for pro c scripts

Viewing all articles
Browse latest Browse all 16232

Trending Articles