Helo all,

Please let me first state that I am not a c programmer!! What i need is a program that will take command line arguments and then run a program passing it those arguments.

This is what I have so far
#include <stdio.h>

main( int argc, char *argv[] )
{
if ( argc == 5)
{
system("/usr/local/script/send_it.pl argv[1] argv[2] argv[3] argv[4]");
}
else if ( argc < 5)
printf("USAGE: sendit <keyname> <local file> <remote file> <speed>\n");
return ;
}


How do I get it to expand the argv values?

Thanks