Shell Script Trouble

xyz

Registered

I'm trying to set up a script to run from the script menu:

#!/bin/csh

mysqladmin flush-logs

I actually want to due more than that, but it sufficiently illustrates my problem -- the console says: "command not found: mysqladmin". This same command, however, works just fine from a terminal window. Any ideas?

Thanks!
 

Darkshadow

wandering shadow
The script menu doesn't set up environmentals, and in this case you have no PATH set.

to fix it, give the whole path to mysqladmin i.e. /usr/bin/mysqladmin

(Note, I don't have that installed, so that was just an example path. I dunno where it's at, you'll have to find that one out).
 

xyz

Registered
Thanks Dark Shadow... that works!
 
Top