The Following User Says Thank You to macesn For This Useful Post: | ||
|
2013-12-12
, 15:08
|
Posts: 728 |
Thanked: 1,217 times |
Joined on Oct 2011
|
#512
|
|
2013-12-12
, 15:51
|
Posts: 18 |
Thanked: 29 times |
Joined on Dec 2013
|
#514
|
echo "Filtering status..."
order_status=`echo $orders | sed -e 's/.*<td><em>//g' -e 's/<\/em>.*$//g'`
<td><span class="price">€314.01</span></td> <td><em>Paid</em></td> <td class="a-center">
|
2013-12-12
, 15:59
|
Posts: 16 |
Thanked: 7 times |
Joined on Feb 2013
@ Finland
|
#515
|
|
2013-12-12
, 16:03
|
|
Posts: 7,075 |
Thanked: 9,073 times |
Joined on Oct 2009
@ Moon! It's not the East or the West side... it's the Dark Side
|
#516
|
|
2013-12-12
, 16:10
|
Posts: 53 |
Thanked: 104 times |
Joined on Jan 2011
@ Veska, Czech Rep.
|
#517
|
Thi part fails to extract the order_status. status.txt is empty.
It should work though
HTML Code:<td><span class="price">€314.01</span></td> <td><em>Paid</em></td> <td class="a-center">
The Following User Says Thank You to jamar For This Useful Post: | ||
|
2013-12-12
, 16:16
|
|
Posts: 513 |
Thanked: 651 times |
Joined on Feb 2011
@ Sweden
|
#518
|
|
2013-12-12
, 16:18
|
Posts: 18 |
Thanked: 29 times |
Joined on Dec 2013
|
#519
|
Hmm, it's just a simple sed line, it should work and it's working correctly on my server.
Are the previous curl lines working for you, so you have the orders history page content in $orders variable, if you try to echo it?
$ order_status=`echo '<td><em>Paid</em></td>'| sed -e 's/.*<td><em>//g' -e 's/<\/em>.*$//g'` $ echo $order_status Paid
echo "Filtering status..." order_status=`echo $orders | sed -e 's/.*<td><em>//g' -e 's/<\/em>.*$//g'` echo "order_status=$order_status"
Filtering status... order_status= Status of your order is still , nothing to do but wait.
|
2013-12-12
, 16:19
|
|
Posts: 7,075 |
Thanked: 9,073 times |
Joined on Oct 2009
@ Moon! It's not the East or the West side... it's the Dark Side
|
#520
|
What da fu..
http://www.posti.fi/itemtracking/pos...=RR082653995FI
My jphone is not accepted for air transport! Maybe that's why Marc Dillon is missing, driving around delivering jphones in person. Anyway, this got me thinking, what about an explosive OH? Just slap it on, set the timer and kaboom! If anyone at DHS reads this post I doubt that the jphone will be allowed to be sold in the US. :P
Last edited by macesn; 2013-12-12 at 15:05.