I have a sed command that gets most of what I want done with the exception of the '$1' && I haven't figured out how to make it enter the line like I want.
Here is my command:
sed -i 's/# UserParameter=/UserParameter=systemd.unit.is-active,systemctl is-active --quiet $1 && echo 1 || echo 0/g'...
Thanks Andrzejek I'll check that out.
Thanks Chris, hadn't thought of doing it from the central server to the others, makes more sense. Then I can manage the query activity better.
I have a mysql query that I want to take the result of and upload/insert it into a different Mysql server. This would be once a day and over the internet. I will have many PCs sending the same info to a commn Mysql DB. I can setup ssh access. Just not sure how to get the info across. Is...
I spoke to soon and maybe it isn't this php file. I added the require and arranged the $htmlbody and ran the php script from the browser. I got the email with the info in a table just like I wanted it. I changed the info and tried again and I get nothing. I am also having issues with my...
Thanks for the reply.
No user input, the info is already in a table. I just want to put it in a table format ( 5 columns) and email it. I have a php script that writes it to a browser. I want to change that to email it.
<html>
<body>
<?php
$username = "";
$password = "";
$database =...
I am trying to put together an email script that includes a html table. Can someone point me to an example of how to do this? I just have a small table with 5 items in a mysql DB.
Thanks
Hi
I have a php file that I am using to email a html link. I have a variable for the WAN Ip address and then a page link. The link is formed for the WAN IP but for some reason the page isn't included in the link.
$message = "
<html>
<head>
<title>Unauthorized Programming</title>
</head>...
Thanks Chriss
I only tried Like because it was suggested in some searches I did
select * from `freepbx_settings` WHERE `keyword`='FREEPBX_SYSTEM_IDENT'
gives me the whole row of info. I just need the value in that row
Thanks
I have a table with no index and there are only keywords. Here is the layout:
So there is a keyword I want the value from I have tried
select * from freepbx_settings like %FREEPBX_SYSTEM_IDENT%
FREEPBX_SYSTEM_IDENT is the keyword
freepbx_settings is the table
I know this should be easy...
Hi feherke
Thanks for replying. I briefly looked up triggers. Looks interesting. That would tell me if someone inserted into the table for sure. I would also want to know "What" they inserted. I will try the except and see if I can make that work
Thanks again
Ed
I have two identical tables in two different DBs. In the one I will be adding data, once all finished the I need will copy all that data to the other db.table. Later on I want to run a query to see if there has been any additions to the first table. Comparing the two tables seems to me the...
I am not having any luck getting this to work. As far as I can tell I want to create a CRUD system. I have a table with 6 fields, I need a way to
a. List all the records
b. Provide a way to Insert a new record
C. Edit an existing record.
Here is what I have so far. I know it is...
I finally got to the point where I get this as an output from my form page
Array ( [extension] => Array ( [0] => 100 [1] => 101 [2] => 102 ) [secret] => Array ( [0] => a467ca4044f298eff15a26e59f39fe21 [1] => 0c4275de171ef363b77aa6aae27afff1 [2] => c1951bfb07ed6a833d6d785ff4e19123 ) [phone] =>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.