LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to use scp command in c program (https://www.linuxquestions.org/questions/programming-9/how-to-use-scp-command-in-c-program-722440/)

tamilm 04-29-2009 04:51 AM

how to use scp command in c program
 
Hi all

This is tamil.DM355 Target board records the video thats coming from

camera in avi format.so avi file is created on target.i have installed

freenas on another pc.i was able to copy avi file by using scp command

scp *.avi root@nasserverip:

i was asked for password.after giving password, avi file was copied to nas

server.but now i have to run

scp *.avi root@nasserverip:

by using c program.


can anyone help me?


thanks and regards

tamil.M

Sergei Steshenko 04-29-2009 06:49 AM

Quote:

Originally Posted by tamilm (Post 3524479)
Hi all

This is tamil.DM355 Target board records the video thats coming from

camera in avi format.so avi file is created on target.i have installed

freenas on another pc.i was able to copy avi file by using scp command

scp *.avi root@nasserverip:

i was asked for password.after giving password, avi file was copied to nas

server.but now i have to run

scp *.avi root@nasserverip:

by using c program.


can anyone help me?


thanks and regards

tamil.M

man 3 system

dwhitney67 04-29-2009 07:54 AM

Or use a shell script (that runs the C program and then performs the scp). And if you are brave, setup the SSH public key on the remote system so that you can perform passwordless scp transfers.


All times are GMT -5. The time now is 06:26 PM.