For Programmers: Free Programming Magazines  


Home > Archive > Tcl > March 2008 > send









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author send
401anil@gmail.com

2008-03-28, 7:30 pm

Hi,

I am unable to run a script in linux

actually i need to send 1024B data using send that is

send "ping6 <ipV6 address> data-fill <1024Bdata>\r"

but itz sending only 970-980B

plz help itz important to me
Bruce Hartweg

2008-03-28, 7:30 pm

401anil@gmail.com wrote:
> Hi,
>
> I am unable to run a script in linux
>
> actually i need to send 1024B data using send that is
>
> send "ping6 <ipV6 address> data-fill <1024Bdata>\r"
>
> but itz sending only 970-980B
>
> plz help itz important to me


OK, you can't do that. does that help?

I don't think it is expect that is truncating your data,
I think it is the command line of whatever you are running.

What is the program you originally spawned?

Try doing what you want manually (without expect) and
I bet you see the same thing - your command line is limiting
your input.

There may be workarounds, but more details and examples
of manual steps that *do* work.

Bruce
Ron Fox

2008-03-31, 8:57 am

HAI
You have several choices not mutually exclusive:
1. Use more than one send command.
2. Keep asking the same question here over and over again and hope
you'll get a different answer (see:
http://www.quotationspage.com/quote/26032.html).
3. Continue to write your messages in LOLCode (see http://lolcode.com/)

LOL

KTHXBYE


401anil@gmail.com wrote:
> Hi,
>
> I am unable to run a script in linux
>
> actually i need to send 1024B data using send that is
>
> send "ping6 <ipV6 address> data-fill <1024Bdata>\r"
>
> but itz sending only 970-980B
>
> plz help itz important to me

Larry W. Virden

2008-03-31, 10:21 pm

On Mar 28, 9:23=A0am, 401a...@gmail.com wrote:
>
> actually i need to send 1024B data using send that is
>


Have you tried executing the command
"stty raw"
on the machine that is the target for the too long lines?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com