Error: Can't find out if NetworkManager is running: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory. The following fixed the problem: apt-get install dbus (if you already have dbus installed: sudo service dbus start) /etc/init.d/network-manager start
What caused the error?: /etc/init.d/network restart
# If is there another instance already running: # display the message “Another instance is already running, quitting.”, and return -1 error code. me = SingleInstance()
That's a guide to making WinSCP send a dummy command every 30 seconds to keep your connection alive. It's way better than constantly having to type in your password.
I wanted to run a script every 20 minutes, so I put this into my crontab: 20 * * * * sh script.sh
That's wrong. That only runs it once every hour 20 minutes into the hour. For example, "20,40 * * * * sh bash.sh" would run it twice - 20 and 40 minutes into the hour.
To run the script every 20 minutes like I was expecting: */20 * * * * sh script.sh
If it's asking you for FTP login information when you try to update wordpress or a plugin, you don't need to do that! Chances are you don't have permissions correctly configured on that directory. Make sure apache owns the directory. On ubuntu, this will probably work (depending on which user owns apache):