Hi,
I'm trying to run a Discovery Studio script I wrote using the command line.
( This scripts runs OK when I use the Discovery Studio interface, however for large inputs the program crushes after successfully processing ~10 files. I hope that by running via command line I would be able to avoid the crushing of the program or at the very least automate the restarting of the script for the remaining files after each collapse. https://community.accelrys.com/thread/7032 )
I use
C:\\"Program Files (x86)\\Accelrys\\Discovery Studio 3.5\\bin\\perl.bat" D:\\ELAD(discoveryStudio)\\script_name.pl
My script begins with:
print "Connecting to server...\\n";
my \\\$session = Protocol::Document::DefaultSession();
[code]
if (\\\$session)
{
print "Connected to \\\$session->{Server} as user \\\$session->{User}.\\n";
}
else
{
print "No Pipeline Pilot server found. Please connect to a valid server and try again.\\n";
}
[\\code]
And indeed I get the message "No Pipeline Pilot server found. Please connect to a valid server and try again" when I call this script from the command line as described above.
On the other hand, when I run the script via the DS program visual interface, I get "Connected to
What am I doing wrong?
Why can't I start a session using via bin\\perl.bat ?
Many thanks,
Elad
