Alex,
Yes, it works fine under solaris 8 now but my problem
isn't completely solved ...
in fact in my real script i use something like
USER="guy"
HOMEDIR="\\\\\\host\\\\$USER"
So i can't really use
HOMEDIR='\\\\host\\$USER'
Note that the write() function append a CRLF : chr(13)&chr(10)
at the end of the line (a batch for DOS ...)
Thanks
Guy
> hi,
> I executed it with bash. With sh hier is a small correction: please no
> whitspace after =
> #!/bin/sh
> SCRIPT="./test.bat"
> exec 1>"$SCRIPT"
> HOMEDIR='\\\\host\\user'
> write "echo $HOMEDIR"
> and personal i will do it like this:
> #!/bin/sh
> SCRIPT="./test.bat"
> exec 1>"$SCRIPT"
> HOMEDIR='\\\\host\\user'
> printf "echo $HOMEDIR"
> please tell me if it works under solaris 8.
> > Hi,
> > I'm loose with all this \ in my script.
> > How can i modify the behavior of \ ?
> > Thanks
> > Guy Roussin
> > This is an extract of my script (test2.sh)
> > (note the high number of \)
> > ------------------------------------
> > #!/bin/sh
> > SCRIPT="./test.bat"
> > exec 1>"$SCRIPT"
> > HOMEDIR="\\\\\\host\\\\user"
> > write "echo $HOMEDIR"
> > ------------------------------------
> > # ./test2.sh
> > # cat ./test.bat
> > echo \\host\user
> > --