I'm new to AutoIp and wonder what the parameters that often come with the #ComSpec macro mean. I couldn't find an explanation on the web. So any hint regarding /c, /k and maybe others?
Thanks a lot.
#ComSpec is the value of %COMSPEC%; the specified secondary command interpreter.
(For example: C:\Windows\system32\cmd.exe)
A quick search on "cmd.exe arguments" should give you plenty of info.
Related
Can this be done in R? where am R script can be run without interruption by any function.
This Do you want to proceed? [y/N]: was generated from renv::restore(), but regardless, can all promotes be ignored.
Any input is helpful, Thanks.
Afaik all renv commands (restore() definitely) have the prompt argument:
prompt
Boolean; prompt the user before taking any action? For backwards compatibility, confirm is accepted as an alias for prompt.
Use prompt=FALSE (default is interactive()) to turn off the prompting.
zsh version 5.2
I'm attempting an array assignment using filename generation like so:
files=(/some/path/*/dir/myfile)
Indeed this is the way the zshoptions manual recommends to achieve what I want.
When no matches exist I want the array to be empty. Instead it's producing
no matches found: /some/path/*/dir/file
and the script terminates.
I've tried setting NULL_GLOB, CSH_NULL_GLOB and ensured NOMATCH is not set.
When matches do exist it works as expected.
Any help is appreciated.
Thank you in advance,
Wayne
Well of course I found the solution after posting my question.
For this to work EXTENDED_GLOB needs to be set as well as NULL_GLOB. Or a glob qualifier can be used so that NULL_GLOB only effects this particular expansion.
This is how to set NULL_GLOB for a single operation:
files=(/some/path/*/dir/myfile(N))
Hope that can help someone else who encounters this.
Wayne
I'm developing a plugin in Frama-C and I want to get the Pdg graph from the C program.
I tried the Db.Pdg.get which takes "kernel_function" type while I have a "funcdec" type. I didn't know how I fix that.
Any help?
You can use Globals.Functions.get fdec.Cil_types.svar to convert a fundec fdec into a kernel_function. Calling Db.Pdg.get is then the right way to go.
I'm having some problems using the function System() in R.
I don't really know exactly what kind of commands that I use in ms-dos is possible to
use in System(). Probably I can use anything but I don't know how.
I have used a few examples on the internet, for example:
To launch a file
system("notepad myfile.txt")
To launch a shell
system(Sys.getenv("COMSPEC"))
However, I wanted to use the command SET in order to try to get the user input (I know I could use readline() in R but it won't be useful in my code).
Is it possible to use SET with system()?
I tried to use:
system("SET /P uname=Please enter your name:")
system(SET /P uname=Please enter your name:)
system(paste("SET /P uname=Please enter your name:"),wait=FALSE)
None of them worked. Does anyone know how to do this?
How can I tell unix "find" to include in it's recursive search a folder which is softlinked?
-L . This causes it to follow all symbolic (I assume this is what you mean by soft) links.
Interesting - I hadn't come across '-L' (or the opposite, '-H') before. You can also use '-follow' to do the same job. It can be built into expressions (it always evaluates to true), so you might be able to be more subtle with it that using '-L'. However, I wouldn't worry about that subtlety too much - the '-L' is simpler.
find some more information about unix find command at
http://scripterworld.blogspot.com/2009/07/unix-find-command-with-examples-and.html