Use the following method to trace exec() function in PHP. Syntax: [php] exec($command, $output, $return_value); [/php] example1: [php] $command = "ls"; exec($command, $output, $return_value); // $output will contains list of files as array. // $return_value will be zero. [/php] Output: Array ( [0] => File1.txt [1] => File2.txt ) 0 example2: [php] $command = "l2"; …
November 2012 archive
Permanent link to this article: https://blog.openshell.in/2012/11/how-to-find-php-exec-function-run-without-error/
Nov 11
dpkg status database is locked by another process
This problem will arise when you accidentally kill the apt-get process or package manager not shutting down properly. So, dpkg become orphan process. To solve this problem you can either restart your computer or open up the terminal and type in the following: Code: sudo rm /var/lib/dpkg/lock Then: Code: sudo dpkg –configure -a
Permanent link to this article: https://blog.openshell.in/2012/11/dpkg-status-database-is-locked-by-another-process/
Nov 07
Access External Property File in Spring Application Context using PropertyPlaceHolderConfigurer
Target Audience: Web Component Developers, Configuration Managers and Deployment Managers What should you know already: J2EE, Spring MVC In an enterprise application we often use property files to share data in Java classes and XML configuration files. The problem is accessing these property files in your code. Whenever you want to read a value out …
Permanent link to this article: https://blog.openshell.in/2012/11/access-external-property-file-in-spring-application-context-using-propertyplaceholderconfigurer/