From: Greg Ercolano <erco@(email surpressed)>
Subject: Re: UNC paths are not supported when including some custom mel scripts
   Date: Tue, 04 Jul 2006 05:23:01 -0400
Msg# 1342
View Complete Thread (8 articles) | All Threads
Last Next
Niklas Aldergren wrote:
However, couldn't you use the equivalent getenv('USERNAME') in MEL and
avoid the system call?

	Yes, but I think the 'echo' was just an inert example to show
	the problem; he has other external programs he wants to run.

Dylan wrote:
As we still use mapped drives here this isn't a problem for us as such.

	Dylan, I know you're familiar with my general warning about
	drive letters, and are probably using the below NET USE technique
	to make it work for you.

	But for the group's sake:
	http://www.seriss.com/rush-current/rush/rush-td-faq.html#TDFAQ-UNC

	Even Microsoft warns against the use of drive letters in multiuser
	contexts such as commands run from services like telnet, rush, rsh:
	http://support.microsoft.com/kb/180362/en-us
	..Rushd is (usually) configured to run as a service.

	One thing you can do to make sure drives are mapped is to hack
	'NET USE' commands into the render scripts just before the renderer
	is invoked, in case the users left drive mapped paths in their scene
	files, eg:

   # IF X: DRIVE ISN'T MAPPED, TRY TO MAP IT
   #    The '< nul' gets you past any 'Y/N' prompts from 'net use'..
   #
   if ( ! -d "x:/" )
       { system('net use x: \\yourserver\jobs /persistent:yes < nul'); }

   # YOUR RENDER COMMANDS HERE
   system("Render -r sw ..");

	This technique is mentioned in these older articles:
	http://seriss.com/cgi-bin/rush/newsgroup-threaded.cgi?-view+1222+1221+1222+1223+1224+1236+1237+1238+1244+1246
	http://seriss.com/cgi-bin/rush/newsgroup-threaded.cgi?-view+539
	http://seriss.com/cgi-bin/rush/newsgroup-threaded.cgi?-view+893+887+889+893

--
Greg Ercolano, erco@(email surpressed)
Rush Render Queue, http://seriss.com/rush/
Tel: (Tel# suppressed)
Fax: (Tel# suppressed)
Cel: (Tel# suppressed)

** NOTE:
**	I will be on vacation July 11th through July 20th.
**	During that time, orders and email response may take over 24 hours.
**


Last Next