Thanks for that Alexander... I was successful in adding one more command directly but i had to fiddle with a lot of code.... this one is really cool.
With some searching and hacking i could find out the status of the file getting downloaded sent to some other application..... i want to now have another way of Feeding the command... Currently what happens is the Do loop of the CmdExec calls NextCmd and that in turn is readline's get.... which is a blocking type of call. Can a parallely add one more interface to send these commands without disturbing the existing command line. i.e. i want to retain the readline get.... and also to have another interface to give the commands.... where should i modify the code.... Vishwanath Patil On 2/14/06, Alexander V. Lukyanov <[EMAIL PROTECTED]> wrote: > On Thu, Feb 09, 2006 at 09:26:12AM +0530, Vishwanath Patil wrote: > > Can you tell me how do i compile and link the example files in the src > > directory, I have been trying them since last 8 hours. I will work on > > the lines you told me and try registering a command. > > Here is an example module attached. Compile it with command: > > gcc -fPIC -shared -nostdlib -I/path/to/lftp/include > -I/path/to/lftp/src example-module1.cc -o example-module1.so > > Then load with command: > module /path/to/example-module1.so > > It registers `test1' command which prints argc. > > -- > Alexander. | software is knowlege > > >
