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


  Search this Thread
Old 06-26-2003, 12:40 PM   #1
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



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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:46 AM.

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