LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-29-2009, 04:51 AM   #1
tamilm
Member
 
Registered: Jun 2008
Posts: 43

Rep: Reputation: 15
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
 
Old 04-29-2009, 06:49 AM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by tamilm View Post
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
 
Old 04-29-2009, 07:54 AM   #3
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp command zchoyt Linux - General 10 04-02-2014 07:47 AM
Translating windows pscp command to linux scp command help robward Linux - General 2 01-17-2008 06:02 AM
SCP Command yusufs Linux - Newbie 3 11-07-2007 02:44 PM
command of scp Paxmaster Linux - General 4 01-06-2005 12:59 PM
How to program scp frontend? lasindi Programming 10 10-17-2004 05:45 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration