[UPHPU] write contents in variable into remote file
Wade Preston Shearer
lists at wadeshearer.com
Tue Nov 6 15:00:11 MST 2007
I have a PHP script that I am running from the command line. I have a
string of text with new line characters in it that I am trying to
write out into a file on a remote server. Here is what I have so far:
ssh user at server echo -e "1\n2\n3" > /tmp/file
It is writing to /tmp/file locally though instead of on the remove
server.
Also, it is not respecting the new lines. The contents of the file are
"1n2n3".
What am I doing wrong?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20071106/ec178973/smime.bin
More information about the UPHPU
mailing list