[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnokii's sendsms command
From: |
Ross O'Gorman |
Subject: |
Re: gnokii's sendsms command |
Date: |
Tue, 2 Apr 2002 17:04:08 +0100 (IST) |
So,
i tryed this and got the following,
echo 'This is the message' | gnokii --sendsms 086XXXXXXX
Exception in thread "main" java.io.IOException: CreateProcess: echo 'This
is the message' | gnokii --sendsms 0868722386
error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:66)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:551)
at java.lang.Runtime.exec(Runtime.java:418)
at java.lang.Runtime.exec(Runtime.java:361)
at java.lang.Runtime.exec(Runtime.java:325)
at test.main(test.java:27)
Ok, i presume this is more of a java sytax error?
Is the idea of the echo command that it will pass in the 'This is the
message' string into the gnokii --sendsms process?
thanks
ross
On Tue, 2 Apr 2002, Pawel Kot wrote:
> >>> address@hidden 2 April 2002 16:20:54 >>>
> > Me again,
> > I am runing a java program which runs gnokii:
> > String sndinfo;
> > sndinfo = "gnokii.exe --sendsms 086XXXXXXX \r\nThis is the message\004";
> > p2 = r2.exec(sndinfo);'
>
> sndinfo = "echo 'This is the message' | gnokii --sendsms 086XXXXXXXXXX";
>
> pkot
>
>
> _______________________________________________
> gnokii-users mailing list
> address@hidden
> http://mail.freesoftware.fsf.org/mailman/listinfo/gnokii-users
>