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: 
```
C:\Program Files\Java\jdk1.7.0_04\bin>keytool.exe -V -list -alias androiddebugkey -keystore "C:\Documents and Settings\IBM\.android\debug.keystore" -storepass android -keypass android

```

Consider your `jdk-bin path` in the `first path` place and your `home user directory` in the `second path`. For `windows 7` it is like`C:\Users\username\.android\debug.keystore`

Use the above command you will get all the keys.

[The google API key is here](http://code.google.com/android/maps-api-signup.html).
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