Цифра после ascii кода

Все о программировании под *nix
chlife
Заглянувший
Сообщения: 2
Зарегистрирован: 07 сен 2005, 10:40
Откуда: localhost
Контактная информация:

Цифра после ascii кода

Сообщение chlife »

При переносе скрипта с win-машины на linux-машину с помощью plink, приходится кодировать символ ' его ascii-кодом(\047). Так вот, есть ситуация, когда за кодом стоит цифра(к примеру 1) и вся конструкция понимается шеллом, как один ascii код(\0471). Разделять пробелом, использовать альтернативную загрузку (scp) не подходят. Не подскажете выход?
Спасение утопающих - это не дело!

Аватара пользователя
Llama
Неотъемлемая часть форума
Сообщения: 9749
Зарегистрирован: 06 фев 2002, 11:40
Откуда: Менск

Сообщение Llama »

chlife, plink == parrallel port link ?
MAN писал(а):
Uuencode and uudecode are used to transmit binary files over transmission mediums that do not support other
than simple ASCII data.

Uuencode reads file (or by default the standard input) and writes an encoded version to the standard output.
The encoding uses only printing ASCII charactersand includes the mode of the file and the operand name for
use by uudecode. If name is /dev/stdout the result will be written to standard output. By default the stan‐
dard UU encoding format will be used. If the option -m is given on the command line base64 encoding is used
instead.
Опыт растет прямо пропорционально выведенному из строя оборудованию

chlife
Заглянувший
Сообщения: 2
Зарегистрирован: 07 сен 2005, 10:40
Откуда: localhost
Контактная информация:

Сообщение chlife »

Plink (PuTTY Link) is a command-line connection tool similar to UNIX ssh. It is mostly used for automated operations, such as making CVS access a repository on a remote server. (http://the.earth.li/~sgtatham/putty/0.5 ... html#plink)
Спасение утопающих - это не дело!

Ответить