I'm trying to run Kurzweil 3000 Version 15 in batch mode. Kurzweil provides an "Automator" but it's not working.
It's essentially just hanging, doing nothing.
In Version 13, it used to work.
Any thoughts on how to troubleshoot? I've followed their instructions end-to-end, without success.
Also, is there a way for us to create a script and invoke Kurzweil 3000 from the command line? Ideally on a Mac, because I'm more familiar writing scripts in bash than windows scripts.
Thanks for your thoughts!
Related
I'm trying to connect my firebase auth to an expo project.
I'm following the main docs of each library. I'm stucking on this step.
I'm not able in windows to exeute this command line openssl rand -base64 32 | openssl sha1 -c.
I've tried with the specific https://code.google.com/archive/p/openssl-for-windows/downloads but I don't know how to reproduce the same line.
Any help would be great, thanks in advance.
You need to install openssl. It is usually available on Linux (which I think that article might have been written for). There are some Windows binaries available at here. Alternatively, you could setup a WSL session, and run the command from there.
that is a linux command. Therefore a linux terminal is needed.
there are at least 2 ways to get this done
using virtual machine with ubuntu or some other operating system that uses a linux terminal aka shell (which I doubt you know about)
OR
installing a linux emulator (windows 8+ since it's from the windows store)
assuming you would prefer option 2, go to the windows store, search "Kali" and you will find an app called Kali. install it and if an error shows up, here's a nice video here that talks about solving that error and you would have a kali terminal on your windows computer (your command would work there)
I am new to Julia. I am looking for a Process Manager for It, specifically for Genie Apps. (In the other words, something equivalent to PM2 for Node.JS). Could anyone help please?
Adrian here, creator of Genie.
I haven't used PM2 but I have used supervisord and I presume they are similar in their approach. Genie apps run in Julia processes which are regular OS processes. What have you tried and what issues have you encountered?
Fiddled a bit with pm2 and the process seems to be straightforward. I'm sure it can be improved by setting up more complex pm2 configuration files, but for a quick solution, this seems to do the trick.
I'm on a windows machine so I confirmed it to work on both Win 10 and WSL/Ubuntu. Let's say we have a Genie app called MyGenieApp, then we run:
Windows PowerShell:
PS C:\MyGenieApp\bin> pm2 start cmd -- -- /k .\server.bat
This will open a CMD window and start the Genie app with the parent cmd process under pm2 control.
WSL/Ubuntu
(MyGenieApp) $ pm2 start bash -- bin/server
Should work the same as WSL for macOS and other *nix OS.
Notice that for Windows you need run it from within bin/ while for *nix from the app's folder (so one level higher, in ../bin). You can edit the files to adjust the paths as needed.
For some reason, on windows, pm2 needs -- -- otherwise it does not pass the arguments to the script. Might a bug in pm2.
I am attempting to automate a R script using Rstudio Server on ec2 machine.
The R script is working without errors. I then navigated to the terminal on RStudio Sever and attempted to run the R script using the command - Rscript "Rfilename" and it works.
At this point I created a shell script and placed the command above for running the R script in there. This shell command is also running fine - sh "shellfilename"
But when I try to schedule this shell command using crontab, it does not produce any result. I am using the following cron entry :
* * * * * /usr/bin/sh ./shellfilename.sh
I am using cron for the first time and need help debug what is going wrong. My intuition is that there is there is difference in the environments used by the command when I run it on terminal and when I use the same in crontab. In case it is relevant information - am doing all of this on a user account created for myself on this machine so would differ from admin account.
Can someone help resolve this issue? Thanks!
The issue arose due to relative paths used in the script for importing files and objects. Changing this to absolute path resolved the described issue.
I'm basically looking for any way to automatically run R scripts just like it would run as if I was copy and pasting it into console. I've tried the package 'taskscheduleR' however it just seems to output to a log file in the directory which isn't as if I were to just run it inside the Rstudio application.
An example might be, say I want to get the last closing stock prices of 5 stocks each night, then the script in Rstudio and have the variables there and all of the code would be in the script file.
Any thoughts?
I would suggest the in-built Task Scheduler application if you using Windows.
Create a task that will run a batchscript file. This batchscript file has only 1 line which executes the Rscript you want. Set it to run each night (or whatever time you want).
I am not that well-versed in linux and MacOS but here's what I know:
Linux has cron. Add a job to crontab with your preferred timing and execute your script 'path/to/bin/r /path/to/script.r'
MacOS has Automator + iCal (for scheduling). It also has crontab like Linux.
I'm planning to use servr::rmdv2() to host some Rmarkdown generated files on a CentOS 6.3 server. I'm wondering what the suggested best practice is for keeping this running in the background, and preferably restarting when my server restarts. Some options I'm considering
Run in background Rscript ... $. Won't restart.
Run in a screen session. Not sure that this will automatically restart.
Use nohup Rscript ... or nohup servr with the servr provided shell script. Place command in /etc/rc.d/rc.local so it runs when system restarts.
Any other options? I'm thinking #3 is the way to go but haven't done anything like this before so not sure what issues I may run into.
I settled on option #3 (hohup Rscript ...). To take care of making sure it's running, I put this command in crontab to run hourly and use flock to make sure that the cron job only restarts if the job isn't currently running.