I’m trying to write a script that will handle some maintenance on our Ubuntu server for the even-less Linux-savvy techs than myself.
When I run the script as administrator (needed to access mysql), it prompts me for the password correctly, the mysql command starts successfully, but the following commands do not run. The Terminal just sits there and doesn’t continue or fail.
Any idea what I’m doing wrong would be very helpful. I’ve done some research but no solutions forthcoming and rather hard to Google.
#! /bin/sh mysql -p fog DELETE FROM `hosts` WHERE `hostID` = '0'; #more DELETE commands in here, removed for brevity DELETE FROM tasks WHERE taskTypeId=8; $Shell