Skip to content

Sending Files #269

Answered by dannagle
JeremypRTS asked this question in Q&A
Discussion options

You must be logged in to vote

The -w 500 means "wait 500 ms for a response". It won't help you when using UDP.

You could instead use a generic sleep command in between statements...

Example...

echo "sleep"
sleep 1
echo "done"

Also, if you are sending a file, you could use the -f parameter to send it directly.

packetsender -u -f "/path/to/file.txt" IP PORT
sleep 1
packetsender -u -f "/path/to/file.txt" IP PORT
sleep 1
packetsender -u -f "/path/to/file.txt" IP PORT

Keep in mind that UDP has a size limit that is typically around 1024 bytes.

Hope that helps.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JeremypRTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants