Eric Carvalho

 Ask Ubuntu General Room

Normally: General discussion around Ask Ubuntu, Ubuntu & offic...
Nov 25, 2013 12:40
@fossfreedom I didn't pay attention to the fact it was closed, my bad. Let's say it wasn't closed, are you saying we should reject edits that only improves readability?
Sep 15, 2013 22:40
:)
Sep 15, 2013 22:40
That's it, gotta go...
Sep 15, 2013 22:28
@Seth Actually this is my second time in chat. :) I have to improve my real time written comunication skills in english... :p
Sep 15, 2013 22:26
Well, it's I see it's fixed now.
Sep 15, 2013 22:26
@Braiam It was a bad review. I realized that only some minutes after I clicked "approve".
 
Jun 1, 2013 16:52
If you need "DISPLAY=:0.0" to get results, add it to /etc/crontab.
Jun 1, 2013 16:51
To simulate cron's environment run: "sudo su -", "su - seths", "vboxmanage list runningvms", if it fails run "DISPLAY=:0.0" and try "vboxmanage list runningvms" again.
Jun 1, 2013 16:35
If the job doesn't run from crontab try adding "DISPLAY=:0.0" near the beginning of that file.
Jun 1, 2013 16:31
It depends on how vboxmanage comunicates with the virtual machines. I used vboxmanage once, and I had to run it with the same user that runs the vm. You can test it yourself. Become root and try to run some command on a VM.
Jun 1, 2013 16:28
"su - username" will ask for password when run from a non-root user, while when run by root the password will not be asked.
Jun 1, 2013 16:27
Actually it's not a good example...
Jun 1, 2013 16:25
The cron service runs as root, and root can impersonate any user. For example, run "sudo su -" to become root, you'll have to enter your password. Then run "su - seths", root will become seths without asking for password.
Jun 1, 2013 16:02
As long as the edits enhance the posts without change their essence, that's no problem.
Jun 1, 2013 15:59
ok.
Jun 1, 2013 15:56
No need to reboot. I think new jobs will be automatically detected, but just to be sure, run: sudo service cron stop, sudo service cron start.
Jun 1, 2013 15:56
You'll have to put username after the *'s. Like: 0 3 * * * root vboxmanage controlvm virtualpbx acpipowerbutton. Use the same user that runs the virtual machines.
Jun 1, 2013 15:56
You don't have to edit /etc/crontab. Just run crontab -e to configure a cron job for the user currently logged in.