villaback.blogg.se

Lighttable cant find exec on path
Lighttable cant find exec on path












  1. Lighttable cant find exec on path full#
  2. Lighttable cant find exec on path code#
  3. Lighttable cant find exec on path Pc#
  4. Lighttable cant find exec on path windows 7#

Or inotifywait -q -m -e close_write myfile.py | (install your distribution's inotify-tools package): while inotifywait -e close_write myfile.py do. Since I need to accept only one, I'm accepting the one that I've actually used (it was simple, quick and easy-to-remember), even though I know it is not the most elegant. What's more, I want something to run in a terminal because I want to see the program output (I want to see error messages).Ībout the answers: Thanks for all your answers! All of them are very good, and each one takes a very different approach from the others. Update: I want something simple, discardable if possible. myfile.py doneīTW: I'm using Vim, and I know I can add an autocommand to run something on BufWrite, but this is not the kind of solution I want now. What I want is something like this: while sleep_until_file_has_changed myfile.py do. myfile.py doneĪnd then I need to go to that terminal and press Enter, whenever I save that file on my editor. I want something very simple, something I will leave running on a terminal and close it whenever I'm finished working with that file.Ĭurrently, I'm using this: while read do. Got the "The system cannot find the file specified" error when I tried running it via the ASP page, but when I run that command on the server, from the same directory where the ASP file is, it works fine.I want a quick and simple way to execute a command whenever a file changes.

Lighttable cant find exec on path code#

If I log onto the server where the ASP code resides, I can open a command prompt at that location, run the psexec command, and it works fine.Īs a test, I changed the "-s" parameter to -u -p and used my username and password.

lighttable cant find exec on path

Running this still results in "The system cannot find the file specified". So here's my new command line: strCommandLine = "\psexec.exe \\" & CompName & " -s -w C:\ClientHealth C:\Windows\system32\cscript.exe C:\ClientHealth\ConfigMgrStartup.vbs /config:\C:\ClientHealth\ConfigMgrStartup.xml"Įverything else from the code in my original post is the same. I'm now copying the VBS and XML files to the target PC, then attempting to run the script via psexec.

lighttable cant find exec on path

Okay, I've finally got back to this task. Currently I've limited my testing to the XP machines since they're the majority.

Lighttable cant find exec on path windows 7#

We have both XP and Windows 7 PCs in our environment. So my hunch is either I can't do what I'm trying to do with psexec, or else I have the language for the command wrong. Also, if I remove the psexec part of the command and run the code below, it works fine: cscript.exe \ \blah\scripts$\SCCM\ClientHealth.vbs /config:\\blah\scripts$\SCCM\ClientHealth.xml

Lighttable cant find exec on path Pc#

In testing, I've tried running the same command from my own PC and get the same error message.

Lighttable cant find exec on path full#

The script in question lives in a folder that Everyone has read/write/execute access to, and the System account has Full Control of. Running the code from the web console produced a mysterious error, so I tried running the same code from a command window and received the error "Couldn't access blah\scripts$\SCCM\ClientHealth.vbs: The system cannot find the path specified".

lighttable cant find exec on path

StrCommandLine = "psexec -s cscript.exe \ \blah\scripts$\SCCM\ClientHealth.vbs /config:\\blah\scripts$\SCCM\ClientHealth.xml" Set WshShell = CreateObject("WScript.Shell") The code for the client health check looks like this: Sub ClientHealth_OnClickĬompName = Trim() The code for the client health check is a vbscript that lives on a server and runs in conjunction with an XML file that provides values for a number of constants. The code that runs the web console is an ASP page with a bunch of vbscript. Hoping the community here may have a solution or at least suggestions.Īt my company we have an SCCM web console that support staff can access for certain tasks, one of which is to check SCCM client health on one of our PCs.

lighttable cant find exec on path

Bit of background first, then the question, which I've also asked on the Sysinternals forum but as of yet haven't received any responses.














Lighttable cant find exec on path