Search Results

Search: Posts Made By: jazzyzha
1,617
Posted By Don Cragun
Try: echo "* 7 * * * asterisk -rx 'gsm send sms...
Try:
echo "* 7 * * * asterisk -rx 'gsm send sms 1 7666 \"TM ON\"'" >> $CRON_PATH
5,891
Posted By alister
You're getting all those command not found errors...
You're getting all those command not found errors because the pipes in the egrep pattern occur outside a quoted string. The shell is interpreting them and searching for the executables that match...
5,891
Posted By Just Ice
i was just looking at this again and not seeing...
i was just looking at this again and not seeing the mysql comand output that you showed as an example ... it seems your issue is that your script does not run the mysql command like alister said...
2,797
Posted By durden_tyler
mysql> mysql> mysql> select * from sms_key; ...
mysql>
mysql>
mysql> select * from sms_key;
+-------------+
| sms_keyword |
+-------------+
| IRC |
| PTM |
| ADM |
| BS |
+-------------+
4 rows in set...
2,797
Posted By pravin27
use below code tr '\n' '#' | sed...
use below code

tr '\n' '#' | sed 's/#/%,/g'

Instead of tr '\n' '%,'
1,890
Posted By Corona688
Do not post classroom or homework problems in the...
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum (https://www.unix.com/homework-coursework-questions/) under special...
2,838
Posted By RudiC
sed 's:^0:+61:'
sed 's:^0:+61:'
2,838
Posted By PikK45
Dear jazzyzha, I missed to add IN there....
Dear jazzyzha,

I missed to add IN there. mysql -uroot -pabcde smsd -e "DELETE FROM inbox WHERE senderNumber = '$BLOCKLIST'" should be changed to mysql -uroot -pabcde smsd -e "DELETE FROM inbox...
4,381
Posted By ahamed101
EMAIL_ADDRESS="$( mysql -uroot -pgurlia001 smsd...
EMAIL_ADDRESS="$( mysql -uroot -pgurlia001 smsd -N -s -r -e "SELECT email FROM recipient" | tr '\n' ' ')"


--ahamed

---------- Post updated at 02:17 AM ---------- Previous update was at 02:15...
4,381
Posted By ahamed101
Did you notice the double quote in the last...
Did you notice the double quote in the last statement(...|mailx..) i.e. after $EMAIL_ADDRESS? is it a copy paste error or is there something wrong in the script itself?

--ahamed
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 06:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy