Graeme06
Technical User
- Jun 6, 2006
- 60
Okay one more question (hopefully the last one).
Here's the command I'm using:
qx{mysql -h localhost -u pingbase -fGGfGGf pingbase -e "update servers set last_status = current_status where name = $server; update servers set current_status = 1 where name = $server; update servers set updated = null where name = $server;"};
Basically what this does is send a command to the Unix shell that opens MySQL and executes a few queries. THe problem is that in there I have the variable $server and I think instead of sending the value that $server represents, it is sending literally "$server". The problem is (I think) that its enclosed in qutation marks but I have to do this for the Unix command to be correct
Any idea how to send the value of $server instead of literally "$server"?
Thanks,
Graeme
Here's the command I'm using:
qx{mysql -h localhost -u pingbase -fGGfGGf pingbase -e "update servers set last_status = current_status where name = $server; update servers set current_status = 1 where name = $server; update servers set updated = null where name = $server;"};
Basically what this does is send a command to the Unix shell that opens MySQL and executes a few queries. THe problem is that in there I have the variable $server and I think instead of sending the value that $server represents, it is sending literally "$server". The problem is (I think) that its enclosed in qutation marks but I have to do this for the Unix command to be correct
Any idea how to send the value of $server instead of literally "$server"?
Thanks,
Graeme