Make sure your arguments to wget are properly encapsulated in quotes. 

Your command shell is interpreting all those '&'s as a command to run things as 
background processes. 


Jim

On 15 Apr, 2011, at 7:53 AM, Gerardo Corro <[email protected]> wrote:

> Hi Nikos,
> 
> Thanks for your message, but:
> 
> $ wget 
> http://localhost:13003/cgi-bin/sendsms?username=&password=&to=0123456&text=Hello+world
> [1] 4840
> [2] 4841
> [3] 4842
> ~$ --2011-04-15 01:52:19--  http://localhost:13003/cgi-bin/sendsms?username=
> Resolving localhost... 127.0.0.1
> Connecting to localhost|127.0.0.1|:13003... failed: Connection refused.
> 
> 
> Thanks.
> 
> 
> 
> > From: [email protected]
> > To: [email protected]; [email protected]
> > Subject: Re: fake smsc
> > Date: Fri, 15 Apr 2011 02:26:34 +0300
> > 
> > Hi,
> > 
> > You are mixing up 2 things in your request:
> > 
> > 1) Fake SMSc port is 13004
> > 2) sendsms port is 13003
> > 
> > Fake smsc service requires the fakesmsc client connected at the fake port 
> > with specific format.
> > Sendsms interface requires the request you sent but at port 13003.
> > 
> > Do not send http reuqests to FAKE SMSc port!
> > 
> > BR,
> > Nikos
> > ----- Original Message ----- 
> > From: Gerardo Corro
> > To: [email protected]
> > Sent: Friday, April 15, 2011 12:56 AM
> > Subject: fake smsc
> > 
> > 
> > Hi all,
> > 
> > 
> > I know this is a recurrent issue, but I still cannot find a solution: I 
> > installed Kannel in my ubuntu laptop with "apt-get install kannel", then I 
> > created this config:
> > 
> > 
> > group = core
> > admin-port = 13000
> > smsbox-port = 13001
> > admin-password = bar
> > log-file = /var/log/kannel/kannel.log
> > log-level = 0
> > access-log = /var/log/kannel/access_kannel.log
> > store-file = /var/log/kannel/store_sms
> > 
> > 
> > group = smsc
> > smsc = fake
> > port = 13004
> > connect-allow-ip = "*.*.*.*"
> > 
> > 
> > group = smsbox
> > bearerbox-host = localhost
> > sendsms-port = 13003
> > global-sender = 13003
> > smsbox-id = "my smsbox"
> > log-file = /var/log/kannel/smsbox.log
> > log-level = 0
> > 
> > 
> > group = sendsms-user
> > username =
> > password =
> > 
> > 
> > group = sms-service
> > keyword = default
> > text = "No service specified"
> > 
> > 
> > after that I restart kannel like this:
> > 
> > 
> > sudo /etc/init.d/kannel restart
> > 
> > 
> > then I try:
> > 
> > 
> > wget 
> > http://localhost:13004/cgi-bin/sendsms?username=&password=&to=0123456&text=Hello+world
> > 
> > 
> > kannel replies:
> > 
> > 
> > 2011-04-14 20:17:34 [6419] [6] WARNING: smsc_fake: invalid message syntax 
> > from client, ignored
> > 
> > 
> > What's wrong? Please help 
> > 

Reply via email to