Dear Team,

I have following test script wherein it POST data using lynx. But Im unable to 
exit Lynx automatically

Vi test.sh
#! /bin/bash/
set -x
echo "mail SMS"|mail -s "hi" [email protected]
echo "hi 1"
lynx 
'http://59.162.71.16:9081/WifiSMS/Promo_sms_BGL.jsp?strName=Floyd&strMobile=919029419231&strPid=ch&strPicd=63'
echo "hi 2"
echo "Sms DONE"|mail -s "hi" [email protected]



tried all option like 
lynx -cmd_script=/wbi/k.sh 
'http://59.162.71.16:9081/WifiSMS/Promo_sms_BGL.jsp?strName=Floyd&strMobile=919029419231&strPid=ch&strPicd=63'
where k.sh = exit


lynx Y ends up in www.Y.com

lynx exit ends up in www.exit.com

lynx Q ends up in www.Q.com


Thanks & Regards
 
Floid Costa
EAI RBU O&M
Direct: 022-67786502
Mailto: [email protected] 








-----Original Message-----
From: Floidranzil Costa 
Sent: Monday, September 30, 2013 10:20 AM
To: 'Stefan Caunter'
Cc: [email protected]
Subject: RE: [Lynx-dev] (no subject)

Dear Stef,

Thank you so much for your swift response.

Thanks & Regards,
Floid Costa

-----Original Message-----
From: Stefan Caunter [mailto:[email protected]] 
Sent: Saturday, September 28, 2013 2:05 AM
To: Floidranzil Costa
Cc: [email protected]
Subject: Re: [Lynx-dev] (no subject)

On Fri, Sep 27, 2013 at 4:14 PM, Floidranzil Costa 
<[email protected]> wrote:
> Dear Team,
>
> I am having trouble executing URL
>
> lynx 
> http://59.162.71.16:9081/WifiSMS/Promo_sms_BGL.jsp?strName=Floyd&strMo
> bile=919029419231&strPid=ch&strPicd=63
>
>
>
> saurabh@eai-test#lynx 
> http://59.162.71.16:9081/WifiSMS/Promo_sms_BGL.jsp?strName=Floyd&strMo
> bile=919029419231&strPid=ch&strPicd=63
> [4] 288098
> [5] 218532
> [6] 218534
> [5]   Done                    strMobile=919029419231
> [6]   Done                    strPid=ch
> saurabh@eai-test#
>
>
> Could you help how to go about troubleshooting
>
> Thanks & Regards
> Floid Costa
>

quote the url to protect it from the shell

lynx 
'http://59.162.71.16:9081/WifiSMS/Promo_sms_BGL.jsp?strName=Floyd&strMobile=919029419231&strPid=ch&strPicd=63'

stef

_______________________________________________
Lynx-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to