LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   if Post_data parameter's value differ? (https://www.linuxquestions.org/questions/programming-9/if-post_data-parameters-value-differ-411936/)

punisher_by 02-05-2006 02:06 PM

if Post_data parameter's value differ?
 
MY QUESTION IS ABOUT LYNX (TEXT BASED WEB BROWSER)

Hi again i have achieved something at last;

Code:

lynx -accept_all_cookies -post_data ww w.mysite.com < parameters.txt
parameters.txt file has this below;

user=Burak&password=123456&semester=20051
--- //this 3 line shows end of parameters

the commans above works well(i am calling this command from remote terminal by .jsp file ssh api)


thats ok but here another problem starts...my user's parameter's value will change...So is there anyway to change the full command similar to this one below???(not using any text file)
Code:

lynx -accept_all_cookies -post_data ww w.mysite.com < user=Burak&password=123456&semester=20051 ---

please help me about this situation and show me a way can it be or not or how??


thanks a lot

Burak YILMAZ

Mara 02-06-2006 03:48 PM

You need to get the parameters from somewhere. So, if you plan a shell script, you can have a variable, like $PARAMETERS or so.


All times are GMT -5. The time now is 11:41 PM.