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'...
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 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>...
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...
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 have a page that uses several queries and puts the results in a table. The first query gets a list of extensions and the secret, then the next two columns are dropdowns with the options from a query allowing the user to select different options. I have a submit to send the info to a page to...
I have a page that I need to query a DB, put all the records in an array and then use the row info as variables in a while statement to create files.
Here is my code for getting the array info
<?php
require('/var/www/html/cqadmin/utils/connect.php');
$query = "SELECT * FROM assignments";
if...
I am setting up a method to program IP phones. I need a way to query the local network, get the MAC addresses of all the phones. I so far have this to discover the phones I want:
arp-scan --interface=eth0 --localnet --retry 1 --timeout 50 --numeric --plain | grep -e 80:82:87
This shows from...
I have a table that in one column shows the results of a query. There could be many rows built. I need to create a form with this table and add two columns, each cell needs to be a dropdown from another table in the same DB. Basically I am linking the three columns to gether. At some point I...
I have a DB that I had an ID field that has numerals and letters in some of the entries. I want to get ONLY the entries with the digits for the id entry. How can I do this?? Here is what I have so far
SELECT * FROM `sip` WHERE `keyword` LIKE 'secret' AND `id` like 102
This will pull the...
I have two tables the first I need to get the productid, and the unitprice. I need to insert into a second table the productid , the unit price * 1.25 into a second table. I also, need to insert into the second table (same record) a pricebookid number that I will enter manually.
this is what...
I need to export a table and I can't seem to get it right. Here is what I need: All fields separated by a comma , all fields enclosed by "" and if a field has either a Null of a nothing in it I need some kind of character either a 0 or o. I can get some of what I want using PHPMyAdmin but I...
I admittedly am not a Access programmer. I have an Access DB that I am using as a front End for a MySql DB. Within this Access frontend I have a report that is setup to go to the local dot matrix printer on her machine. She is the only user of this DB. For no apparent reason, the report print...
I need a simple form to send a pdf. I have a mailing list setup to send out a newsletter. I need a form that I can use to select a file to send to the group every so often. The file will change but where it goes (email to the list)who it is from, subject, etc. will stay the same. Basically...
I have two servers that are running linux with a MySql DB running on each. The old server is running MySql 4.0.20 and the new one is running MySql 4.1.12. What I am trying to do is move all the data from the old to the new. So here is what I have done so far. I used phpmyadmin to dump the...
I have two tables They are for inventory. I have fields in each that would be duplicate entries for example: a row in each table that has the same part number, but maybe a different description and price. Then I might have parts in the one table that are not in the other and I would want to...
I am trying to use a MS Access 2000 front end for a MySql DB. I have MDAC ver 2.8, Jet4 SP8, on a WinXP Home mach. trying to update tables to a MySql 4.0.15 server. I have MySql ODBC driver version 3.51.06 (latest is 3.51.11, but from what I have read the .11 is buggy). I have a form that I...
I have a table with customer information, along with other fields. I have another table that I want to get information (several fields) from the previous table into. Should I use an insert statement, an update statement or a join?
TIA
Ed
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.