I am trying to run DOORS 9.6 in batch mode from the terminal but I am getting an error every time. I am doing the command doors -u user name -p password -batch C:\Users\path\to\file and the DOORS logo pops up and it seems like it is going to work then a window pops up saying "invalid username or password" and then login window for rational DOORS pops up with the username box filled with the first word of my username and the cursor on the password box. I am not sure why this is happening because when I run the command I am putting in the same username and password I put in when I log onto DOORS from the desktop app.
This is the DXL script I am trying to run: // batchserver.dxl IPC ipc = server 5093 string request / add functions for you interface here / while (true) { if (accept(ipc)) { if (!recv(ipc, request)) { warn "Server has disconnected" break } } else { warn "error accepting client connection" break }
print "request: "
print request
print "\n"
errors = false
if (request == "shutdown_") {
send(ipc, "done_")
break
}
if (request == "errors_")
break
if (request == "quit_")
continue
ans = eval_ request
if (ans == "errors in eval_ string") {
print "errors in request\n"
}
send(ipc, ans)
disconnect(ipc)
} Thanks in advance for any help.
Update: I kept playing around with the command and I did this instead: doors -p user name -u password -batch C:\Users\path\to\file Now, the DOORS login screen pops up with my username already filled out(correctly this time) and it has me type my password in. I type it in and it brings up doors but it has the error message CRCRD5080W: This project cannot be found: . When I press okay to make the message go away I am able to use DOORS regularly but still not in batch mode. Not sure why this is. Any help would be appreciated. Thank you.
I think I got this problem fixed by doing the command doors.exe -user "User Name" -password "password" -batch C:\Users\path\to\file (also could not have spaces in file path). But I am now getting an error "null IPC parameter was passed into argument position 1 -I- DXL: execution halted" I am guessing this issue has to do with the batch script I am running(posted in original post). Any ideas why this error might be coming up?
Answer by Mike.Scharnow (232) | Jan 15 at 02:01 PM
this works fine for me. I created a dxl file with the content of http://kronoskoders.logdown.com/posts/603151, started DOORS the way you did it, and the IPC server was started. Of course, nothing is visible, nothing is done, as the script waits for input on port 5093. Then I started python and used the script given at the same link to send an IPC client command to the IPC server (I use python 3.6, so I had to change the line s.send('print "Hello World"')
to s.send(b'print "Hello World"')
. Works great, "Hello World" was printed..
The question is: was it really in your intention to use DOORS as an IPC server?
Hi Mike sorry if I don't understand your question perfectly but I do believe I want to run DOORS as an IPC server. But when I try to do doors.exe -user "User Name" -password "Password" -batch C:\Users\Path\To\File the IPC server does not start and I get the error "-R-E- DXL: null IPC parameter was passed into argument position 1 -I- DXL: execution halted
Press return to exit DOORS."
Is this a server problem since you are not getting this error?
I think I understand now Mike. You need to enter the command and then run the python file and then you will see the batch window pop up. If you enter the command again, before running the python file, hoping to see the batch window that error will pop up. Thanks for all your help.
Is there a way to take the output of my DXL script and save it to a SQL Database? 1 Answer
How do I fix this error that I am getting when trying to run my batch script? 0 Answers
Why am I getting an error when trying to run my dxl script to run DOORS in batch mode? 1 Answer
DOORS : 9.5.X.X Help does not detect Native proxy provider 2 Answers