make the script executable ... chmod a+x websocketscript.R
run the script in the shell ... ./websocketscript.R
Is there any way for this to work as it would in an interactive session? I gather the problem is related to the fact that the process terminates before the callbacks ever execute? I have tried such hacky foolishness in the shell as:
I don't know if this is readily fixable, but I thought I would ask...
websocketscript.R
with the following contents:chmod a+x websocketscript.R
./websocketscript.R
Is there any way for this to work as it would in an interactive session? I gather the problem is related to the fact that the process terminates before the callbacks ever execute? I have tried such hacky foolishness in the shell as:
R < websocketscript.R --interactive
printf source('websocketscript.R') | Rscript --interactive websocketscript.R
No joy. Thoughts?
Thanks!