Displaying keyword search results 1 - 3
Created by Dr. Xi on February 17, 2011 16:09:49 Last update: February 17, 2011 16:09:49
This is a common problem with shell scripts running from cron. Everything works perfectly fine from the command prompt, but fails when running from cron. In the worst cases, the job fails silently, even giving a return code of 0! Usually, these are caused by differences between the execution environments: the interactive shell (command line) has more environment variables defined/exported (through .kshrc , .bashrc etc.) than the shell started by cron. A simple way to resolve the differences is to run set in the command prompt and compare the output with the output of set from cron (add a single line to the shell script). You can also make the shell script more verbose by adding the -x switch:
Created by woolf on February 10, 2011 12:51:14 Last update: February 10, 2011 13:06:11
Windows command line shell does not come with a sleep command. One trick is to emulate sleep using the ping command:
C:\>ping /? Usage: ping [-t] [-a] [-n count...To sleep for about 5 seconds:
@rem make sure to ping a non-existing IP, otherwis...If you have the Windows Resource Kit installed, it does provide a sleep command:
C:\>sleep Usage: sleep time-to-sleep-in-s...
Created by freyo on October 29, 2010 18:02:41 Last update: October 29, 2010 18:04:02
The output from cat /proc/meminfo looks like this (enter the shell with abd shell ):
# cat /proc/meminfo MemTotal: 94096 kB...To quote hackbod from stackoverflow : Finally there is the command "adb shell cat /proc/meminfo" that gives a summary of the overall memory usage of the system. There is a lot of data here, only the first few numbers worth discussing (and the remaining ones understood by few people, and my questions of those few people about them often resulting in conflicting explanations). These are the meanings of the first five rows: Term Meaning MemTotal The total amount of memory available to the kernel and user space (often less than the actual physical RAM of the device, since some of that RAM is needed...