send a newline
Tim Haussmann <[email protected]>
| Newsgroups | gmane.comp.java.sshtools.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I need to send a String like "echo \"This is a test\nThis is the second
line\" > test" with j2ssh.
Actually I need to write several lines in a file with a shell.
I use a Session Object to start a Shell and to obtain the streams(in and
out).
I tried to send the String byte by byte and replaced the "\n" with
'\010' or '\013' or both ('\010\013' and '\013\010').
None of those work.
Anyone got a hint how to send a newline?
regards
Tim
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl