Search Results

Search: Posts Made By: peterworth
4,258
Posted By peterworth
i've found that -w for a timout is one way to do...
i've found that -w for a timout is one way to do it, but even 1 second makes it a bit unresponsive (for what i'm doing the script may need to run in quick succession)
4,258
Posted By peterworth
thanks for this. sorry, 1 more question -...
thanks for this.

sorry, 1 more question - when i do nc with the -u option, it keeps running and doesn't give me the next prompt until i press ctrl-c. is there a way to stop this from happening?...
9,891
Posted By peterworth
great, thanks a lot
great, thanks a lot
9,891
Posted By peterworth
the tr bit seems to do the trick but i dont get...
the tr bit seems to do the trick but i dont get why.. thanks though
9,891
Posted By peterworth
didn't know about -n, great thanks. what's the tr...
didn't know about -n, great thanks. what's the tr for? '.' seems to be 2e rather than 00
9,891
Posted By peterworth
hm, without the quotes it still seems to just...
hm, without the quotes it still seems to just give the character values

2f 00 00 00

writes a file like this

32 66 20 30 30 20 30 30 20 30 30 0A

(32 for the '2' character, 66 for 'f', 20...
9,891
Posted By peterworth
binary/hex output
i want to output something like
2f 00 00 00

but i can't seem to escape characters like i'm used to in some programming languages, so with this:

echo "/\0\0\0" >> outputfile

i actually get...
4,258
Posted By peterworth
how i do i do that?
how i do i do that?
4,258
Posted By peterworth
damn, must be this osx implementation of bash.. ...
damn, must be this osx implementation of bash..

thanks for trying it.
4,258
Posted By peterworth
basic nc question
i'm doing this in one terminal:

nc -lu 7402

and it appears to start listening properly, then in another i do this:

echo "hello" | nc -u localhost 7402

and nothing happens on the listening...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 05:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy