Skip to content

Tag: command-line

Command line execution of Excel functions

Can Excel functions be called from the command line? I don’t want any interactions with any file. I’d just like to use these functions the way other command line tools work. It should merely serve some one-time purpose. For instance, I’d like it if there were a way to do something like this:…

Run processes with priority from shell (not “nice” )

I am looking for the equivalent command to nice, but for setting process priority and selecting the scheduler to use. I need to be able to type (or include in a script) something like run-with-scheduler batch a-big-long-command, or run-with-scheduler round-robin priority 10 to set the process priority and sch…

Number of processors/cores in command line

I am running the following command to get the number of processors/cores in Linux: It works but it does not look elegant. How would you suggest improve it ? Answer nproc is what you are looking for. More here : http://www.cyberciti.biz/faq/linux-get-number-of-cpus-core-command/

Delete files older than X minutes

I would like to delete files that are older than 59 minutes. I have this so far: This doesn’t work and seems to delete all files. I’ve tested this several times and I think the issue is to do with daystart. I’ve read the man page and it seems to base time on the beginning of the day rather t…