LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-26-2003, 12:40 PM   #1
shibdas
Member
 
Registered: Jun 2003
Posts: 32

Rep: Reputation: 15
Sending data over ppp


Hi everybody,
I am currently doing a project to transfer data over ppp link in linux and want some valuable help to proceed. I am presenting the whole scenario here. I have a Linux Dial-in ppp server into which many computers running win xp and linux dials in. I have set up the linux box to act as a dial-in server. Each computer which dial-up this server have different username and password. In the Linux server one directory is maintained for each dial-in username both under a "send" and a "receive" directory. Whenever the connection is established from a computer say XXX to the server a program will run at the server which will send all files in the directory "/send/XXX" and at the other end the files will be received by the computer XXX in its receive directory. I have somehow able to write the C program which will take care of data transfer but the problem is that I have no way to figure out which user has logged in so that I can send data from the appropiate directory. I have called the C program in the "/etc/ppp/ip-up" script which is executed by the pppd each time the connection is established. I have heard that the username is recorded in wtmp system file but it will be helpful for me if somehow show the way to get the username after he has logged in so that I can pass it as a command line argument to the data transfer program.

Thanks in advance

Shibdas
 
  


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
Privacy: sending data to Internet fiomba Linux - Software 1 09-12-2005 05:10 PM
Sending Data Bytes to a terminal jonty_11 Programming 8 03-28-2005 07:55 PM
Laptop keeps sending data every second? mikegorb Linux - Newbie 6 11-16-2004 05:54 AM
Sending data from one server to the other ganninu Linux - General 6 12-10-2003 06:06 AM
Sending data after establishing PPP connection ruchika Linux - Software 0 09-05-2003 07:59 PM


All times are GMT -5. The time now is 10:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration