The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-20-2007
Registered User
 

Join Date: Jul 2007
Location: Near London - UK
Posts: 6
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
Reply With Quote
Forum Sponsor
  #2  
Old 07-20-2007
jgt jgt is offline
Registered User
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 348
The dot is a meta character, and as such has to be escaped.
Use \.
Reply With Quote
  #3  
Old 07-20-2007
Registered User
 

Join Date: Jul 2007
Location: Near London - UK
Posts: 6
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
Reply With Quote
  #4  
Old 07-20-2007
jgt jgt is offline
Registered User
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 348
With both Samba and Visionfs you can substitute / for \ in the server name, so that :
$ENV{'PD_IFORMS'} = '//my.server.name/AAA/BBB/CCC/';
Reply With Quote
  #5  
Old 07-20-2007
jgt jgt is offline
Registered User
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 348
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
Reply With Quote
  #6  
Old 07-23-2007
Registered User
 

Join Date: Jul 2007
Location: Near London - UK
Posts: 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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:04 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0