![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What's the difference between Segmentation fault and Bus error and Illegal...? | lakeat | UNIX for Dummies Questions & Answers | 2 | 03-28-2008 06:25 AM |
| 0821-077 ping: illegal packet size. | vishal_ranjan | UNIX for Advanced & Expert Users | 2 | 10-18-2007 07:50 AM |
| Illegal instruction(coredump) | colinmas | Shell Programming and Scripting | 1 | 09-03-2007 04:52 AM |
| Illegal function call | naren_chella | High Level Programming | 6 | 05-24-2006 09:27 PM |
| 2489 Illegal instruction | ana | UNIX for Dummies Questions & Answers | 1 | 01-14-2005 08:11 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Illegal characters in Servername / Path
Hi there.
I wonder if anybody can help me. I am very new to this and a bit out of my depth. I have a .cmd file which sets various environmental variables for me. When I input a server name that does not contains dots (.) in the name it works fine. As soon as I place in a server name containing dots it fails. Below is an example of what I mean. $ENV{'PD_IFORMS'} = '\\\\myservername\\AAA\\BBB\\CCC\\'; $ENV{'PD_IFORMS'} = '\\\\my.server.name\\AAA\\BBB\\CCC\\'; Does anybody know if I can change the line to use an ASCII character for example? I hope I have posted this in the right area. Please let me know if this should be moved to the 'Perl / Scripting' area, although I have no idea how to move it ;-) Many Thanks Last edited by goodjuju; 07-20-2007 at 12:04 AM. Reason: addition |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
The dot is a meta character, and as such has to be escaped.
Use \. |
|
#3
|
|||
|
|||
|
jgt,
Thanks for your response. Do you mean that I could place $ENV{'PD_IFORMS'} = '\\\\my\.server\.name\\AAA\\BBB\\CCC\\'; in my file to get it to work? I only ask as I have tried this with no luck. Thanks |
|
#4
|
|||
|
|||
|
With both Samba and Visionfs you can substitute / for \ in the server name, so that :
$ENV{'PD_IFORMS'} = '//my.server.name/AAA/BBB/CCC/'; |
|
#5
|
|||
|
|||
|
I thought that I had sent another reply about 2 hours ago, but it seems to be lost so:
Terminal type is ansi # x="\0134\0134server.name\0134device" # echo $x \\server.name\device |
|
#6
|
|||
|
|||
|
JGT,
Thanks again for your response, however it does not seem to make sense to me. Maybe I am just being dim. Is there another character I can use to replace the full-stop (period .) in my server name. My $ENV is in a .cmd file (perl) which is used to start an application. If I use the servername containing full stops, the application will not launch. Thanks again for any help you can offer. |
|||
| Google The UNIX and Linux Forums |