You need to open a nsh shell from jython if you want to use a nsh path. Otherwise it’s opening a bash or cmd shell and those don’t understand nsh paths.
Thanks for pointing me in the right direction!
I'm using NSH script Type 2 to call the Jython.
So before I call BLJython.bat - I have an NSH shell, right?
However, when I tried:
#!/bin/nshversionfile=`cat //fileserver/Deploy/trunk/version.txt` for inputline in $versionfile do echo "$inputline" done "/D/Program Files/BMC Software/BladeLogic/8.0/NSH/bin/bljython.bat" "D:\Prizma\General\Create_Package\CreateDeployProcess.jy" "$inputline"
I'm getting the following error:
Error Jul 14, 2011 12:37:01 AM cat: //fileserver/Deploy/trunk/version.txt: No such file or directory
I'm guessing the //filserver/" is not the correct way to access a remote server.
(do I need to mount it first?)
Am I wrong about having NSH shell in script of type two?
did you use the real hostname instead of 'fileserver' here?
does /Deploy/trunk/version.txt exist on the target?
type 2 is a nsh script, so the above should work assuming the path is correct. you do not need to mount anything.
My problem is overdose of Windows, and not enough bash experience.
The problem was that the "//fileserver/Deploy" is a Windows shared folder.
Once I changed the path to direct "//fileserver/C/Deploy" instead of the Windows share, it all started playing in harmony.