Is there any way to start foobar.js WSH-script in order that standard Task Manager will display a script process name as foobar.something and not as "wscript.exe"?
Thanks in advance.
Standard Task Manager? not that I know of.
But if you are ready to switch to Process Explorer instead,
selecting a Command Line display column will clearly show foobar.js .
No. Task Manager shows actual process objects. A .js file will never be a process object.
The WScript object managed by the windows scripting host does not appear to expose the application title either.
I'll be surprised if you can change the name associated with a process in task manager. But if your goal is to identify the process programatically, you can use the process ID (PID). You can add a column to the task manager view that will display this information or you can get the ID of processed spawned from within WSH using the following property:
http://msdn.microsoft.com/en-us/library/x78640t0(VS.85).aspx
Related
I have set
spring.cloud.deployer.local.workingDirectoriesRoot=D:\\Deploy
in application.properties to define log folder.
However, It does not works, the log of task when I launched is written on java.io.tmpdir (C:/..../temp/).
I am using spring-cloud-dataflow-server-core version 2.3.0.RELEASE
Does I need to put these config in dataflow-server.yml ?
How can I configure the log folder of SCDF and their tasks?
We just added some tests for windows and noticed that correct format (assuming task name is timestamp) which actually works on windows when using drive letter is:
deployer.timestamp.local.working-directories-root=file:/C:/tmp
Think is how in a spring world binding works from String to java.nio.file.Path. For those interested to know more, It's spring core's PathEditor which uses Paths.get(URI), thus need for file:.
The property workingDirectoriesRoot is a local deployer property and not an application property. Hence, it needs to be passed when launching the task.
task launch <task-name> --properties "deployer.<task-name>.local.workingDirectoriesRoot=D:\\Deploy"
I've created task in ecplise which calls DB stored procedure. I've written WID and Work Item Handler for this (running from eclipse works). But now I would like to add this task to workbench to let workbench users creating processes with it. How to do it?
Can you please elaborate a little bit more about what you are doing?
Take a look at this blog post to see if it answer your questions:
http://salaboy.com/2013/10/22/kie-wb-jbpm-console-ng-configurations/
Create a new process and open it in designer. After doing that, you should also see a work definitions file being created in the same folder (by default with 4 predefined service tasks), if you open that, add your custom wid and save, reopening the process should show your custom service task in the palette under the service tasks category.
I am calling a controller method to convert a video file. This process
is called using background_fu job. When the function tries to create a
new folder in rails root it gives error i.e. Permission denied. The
function performs well if not called in background job process.
Can any one point out what can be the trouble.
Thanks in advance,
Anubhaw
Check to see if the background process is running under a different user account to the one being used by your Rails application. On Linux/UNIX you can generally get this information by running the top or ps command.
Does anyone know how to get the PID of the process that a windows service is running in from Nant?
I am having file locking problems. I issue a stop command to the service and then try and delete the Windows service's files. However these are quite often locked by the process that the Windows service is running in. I want to find the PID so that I can wait for it to terminate before deleting.
Thanks
You might have to create a custom nant task to do this. However you might want to see about just adding maybe a delay like 1 min or something before you try to replace your files. Might be easier.
I am trying to figure out how to spawn a process / start an EXE from Rhozet Carbon Coder.
The manual mentions a task that sounds promising, "ExternalProcess", in section 5.8.2 but does not document this task.
Has anybody had success doing this, or knows where the ExternalProcess task is documented?
I have heard back from Rhozet that the ExternalProcess command mentioned tangentially in the manual is a typo, there isn't any task by that name.
Currently the only way to launch a process is to use the Notify task.
For example the folowing xml put in the Sources section of a configuration file launches notepad before running the job.
<Notify>
<PreTaskNotify>
<ProcessNotify_0 NotifyCommand="notepad.exe" />
</PostTaskNotify>
</Notify>