Search Results

Search: Posts Made By: jazzyzha
1,789
Posted By jazzyzha
Capture an USSD output then sms it
Hi,

I need help. I want to capture an output from a USSD then sms it to a certain number for checking credits balance.

I tried with this:

echo "asterisk -rx 'gsm send ussd 1 *888#'"|...
1,578
Posted By jazzyzha
It does what I want: # crontab -l * 7 * *...
It does what I want:

# crontab -l
* 7 * * * asterisk -rx 'gsm send sms 1 7666 "TM ON"'
* 7 * * * asterisk -rx 'gsm send sms 3 7666 "TM ON"'

Thanks! :)
1,578
Posted By jazzyzha
Hi Don Cragun! Thank you so much for your...
Hi Don Cragun!

Thank you so much for your answer. But how if i want 2 cron job? should it be like this:

#!/bin/sh
#custom mod - send sms once a day, at 07:00....
1,578
Posted By jazzyzha
Cron job cannot run the command
Hi,

I created this cron job for asterisk to send sms daily to a number

#!/bin/sh
#custom mod - send sms once a day, at 07:00.
CRON_PATH="/etc/asterisk/gw/crontabs_root";
if ! grep 'gsm send...
2,126
Posted By jazzyzha
:) thank you brother. you have my word, i will...
:) thank you brother. you have my word, i will donate 5% to a local charity. will be pm you with pics.

the script doesn't give me an email

heres the code:

VALIDATION="$(mysql...
2,126
Posted By jazzyzha
is this right? i changed to: CNT=0 # use...
is this right? i changed to:

CNT=0 # use to check if any of the group errors are found
for GRP in $((mysql --skip-column-names -uroot -p123456 smsd -e "SELECT sms_keyword FROM kontak_group") >...
2,126
Posted By jazzyzha
Do you mean like this? ...
Do you mean like this?

GRP_email_subject=$(mysql -uroot -p123456 smsd -e "SELECT email_subject FROM kontak_group")
GRP_email_address_list=$(mysql -uroot -p123456 smsd -e "SELECT email_group FROM...
2,126
Posted By jazzyzha
thank you brother. but what i'm saying is,...
thank you brother.

but what i'm saying is, can i run a script that reads my table row like this:

if message contain a word from one of sms_keyword field then email it to the corresponden row...
2,126
Posted By jazzyzha
Smarter conditional script with Table
Hi, currently I have a script with conditional checking. But it's not flexible to use, because i must create a more conditional script if there are more keyword (see table) required. Question is: Can...
5,878
Posted By jazzyzha
hmm.. now i understand what Alister said. ...
hmm.. now i understand what Alister said.

Thanks Just Ice. ok now I can run the code with:

CHECKER=$(mysql -u root --password=123456 smsd -e "SELECT ID, SenderNumber, TextDecoded FROM inbox...
5,878
Posted By jazzyzha
Dear Alister, thanks for your repply. ...
Dear Alister, thanks for your repply.

variable assigned to CHECKER are right:

mysql -u root --password=123456 smsd -e "SELECT ID, SenderNumber, TextDecoded FROM inbox ORDER BY ReceivingDateTime...
5,878
Posted By jazzyzha
Thanks Bro, but it doesn't work out. I already...
Thanks Bro, but it doesn't work out. I already tried use your script. btw, Im using debian squeeze.

The result are:

+ ADMemails=acme@gmail.com
+ HCSemails=acme@gmail.com
+ ADMSubject=Email to...
5,878
Posted By jazzyzha
changed and echo from $CHECKER : mysql -u...
changed and echo from $CHECKER :

mysql -u root --password=123456 smsd -e "SELECT ID, SenderNumber, TextDecoded FROM inbox ORDER BY ReceivingDateTime DESC LIMIT 1 \G" |egrep -w...
5,878
Posted By jazzyzha
Hi, thanks for your repply. I changed the...
Hi, thanks for your repply.

I changed the code to this:

status=0
PTMemails="acme@gmail.com"
HCSemails="acme@gmail.com"
PTMSubject="Email to group status - Sent"
HCSSubject="Email to group...
5,878
Posted By jazzyzha
Conditional emailing with mysql query
Hi, Im new with bash scripting and I want to create a conditional emailing with bash scripting. But it doesn't workout.

the conditional requirement are; if the TextDecoded value from inbox table...
3,184
Posted By jazzyzha
Retrieve multiple rows from mysql and automatically create a table
Hi, i want to create a table automatically based on another table (sms_key).
For example;

If user create a new row with sms_keyword field: IRC then a table created automatically (with some...
2,026
Posted By jazzyzha
Hi, im using mysql. the script are trigered with...
Hi, im using mysql. the script are trigered with bash script:

mysql -uroot -p123456 smsd -e "INSERT INTO inbox_spam
SELECT * FROM inbox WHERE TextDecoded
NOT regexp ( select concat_ws ( '',...
2,026
Posted By jazzyzha
In php, Moving a new row to another table and deleting old row
Hi, I already succeed moving a new row to another table if the field from new row doesn't have the first word that I categorized (like: IRC blablabla, PTM blablabla, ADM blablabla, BS blablabla).
...
2,760
Posted By jazzyzha
Hi thanks pravin27! and also thanks to...
Hi thanks pravin27! and also thanks to vidyadhar85. now it showed percent and comma. :-)

---------- Post updated at 01:08 AM ---------- Previous update was at 01:04 AM ----------

Hi...
2,760
Posted By jazzyzha
already changed it to: CHECK_KEYWORD="$( mysql...
already changed it to:
CHECK_KEYWORD="$( mysql -uroot -p123456 smsd -N -s -r -e "SELECT sms_keyword FROM sms_key" | sed 's/^0/+62/g' | tr '\n' '%,' | sed 's/,$//g' )"
mysql -uroot -p123456 smsd -e...
2,760
Posted By jazzyzha
Hi, thanks for your repply. The result is: ...
Hi, thanks for your repply.

The result is:
mysql -uroot -p123456 smsd -e INSERT INTO inbox_spam SELECT * FROM inbox WHERE TextDecoded NOT LIKE '(IRC,PTM,ADM,BS)%'


and i think the correct...
2,760
Posted By jazzyzha
Moving new row and deleting old row to another table
Hi, I want to move a new row to another table if the field from new row doesn't have the first word that I categorized (like: IRC blablabla, PTM blablabla, ADM blablabla, BS blablabla).

I already...
1,881
Posted By jazzyzha
Boolean expression
hi, im learning python language. and my teacher gives me this question on class:

Boolean expression :
not (p or not q)

what is the correct answer for that? i still dont understand, and please...
2,812
Posted By jazzyzha
Thank you Brother PikK45 !, now it can delete...
Thank you Brother PikK45 !, now it can delete the new record. :-D thank you so much for your help.
2,812
Posted By jazzyzha
Thanks PikK45, using this: ...
Thanks PikK45,

using this:

BLOCKLIST="$( mysql -uroot -pabcde smsd -N -s -r -e "SELECT senderNumber FROM blacklist WHERE senderBlock='Y'" | sed 's/^0/+61/g' | tr '\n' ',' | sed 's/,$//g' )"...
Showing results 1 to 25 of 39

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