Question: I am having trouble executing at command via php. When I start this job, it runs the 1st time and creates a queue job 1 minute from it finishes the Run Logic. The queued job runs at specified time but it will not create a new job queue 1 minute after it completes the Run Logic so it dies.

The pseudo logic is  

`//task_queue.php  

if(we_have_tasks){  

Run Logic  

shell_exec('/usr/local/bin/php -f task_queue.php | at now + 1 minutes');  

}`

What am I doing wrong? Any help is appreciated. I thought if I used the 'at' command I'll be able to schedule jobs without overlapping.

Thanks

Answer: 
for windows

step1: start --> run-->

type

C:\Documents and Settings\ashish\.android 

***hear you should be pass your current user***  

and find debug.keystore

![description](https://i.stack.imgur.com/OVUwD.jpg)

now get the path of debug.keystore

```
C:\Documents and Settings\ashish\.android\debug.keystore

```

now the command for getting MD5

```
keytool -list -alias androiddebugkey -keystore <path_to_debug_keystore>.keystore -storepass android -keypass android

```

so now we pass the path of dedug.keystore 

the full command is

```
keytool -list -alias androiddebugkey -keystore "C:\Documents and Settings\ashish\.android\debug.keystore" -storepass android -keypass android

```

step 2: start--> run-->

type cmd and change directory to **android sdk's platform-tools** and past the following command
![enter image description here](https://i.stack.imgur.com/oygDw.jpg)
press enter

![enter image description here](https://i.stack.imgur.com/lPZhO.jpg)

now you are getting MD5 now how to use it.....
now Go to <https://developers.google.com/android/maps-api-signup>

![enter image description here](https://i.stack.imgur.com/q7lDq.jpg)

after that press button It will give you map api
For windows

1.Locate your debug.keystore file
 "C:\Users\bhushan.android\debug.keystore"

2.Locate keytool.exe in Java\bin folder

```
C:\Program Files\Java\jre7\bin>keytool -v -list -alias androiddebugkey -keystore
 C:\Users\bshirsath\.android\debug.keystore -storepass android -keypass android
Alias name: androiddebugkey
Creation date: Mar 8, 2012
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=Android Debug, O=Android, C=US
Issuer: CN=Android Debug, O=Android, C=US
Serial number: 1f5b8c95
Valid from: Thu Mar 08 17:51:52 IST 2012 until: Sat Mar 01 17:51:52 IST 2042
Certificate fingerprints:
         MD5:  6E:E7:47:2E:A7:07:8A:42:77:89:A8:83:C7:A6:53:87
         SHA1: 1D:99:2B:0E:D3:2F:DE:12:92:CE:86:EE:5A:D2:99:80:28:F7:B6:22
         SHA256: 30:0B:FC:40:7F:57:9F:51:FF:60:94:B9:CE:27:C1:7A:9D:EF:F7:14:C8:
36:B0:E8:F4:11:13:23:B1:67:17:08
         Signature algorithm name: SHA256withRSA
         Version: 3

Extensions:

#1: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: DF 53 60 E5 59 3A 8C 07   EA E1 A2 3F 00 57 45 DD  .S`.Y:.....?.WE.
0010: DF 29 08 BA                                        .)..
]
]

```

4.Get a key for the Google Maps Android API v1:
 <https://developers.google.com/maps/documentation/android/v1/maps-api-signup>

5.To register for a Google Maps Android API v1 Key, follow these steps:

-->If you don't have a Google account, use the link on the page to set one up.

-->Paste the MD5 key

-->Click "Generate API Key"