Crontab not starting the application in every minute...
Hi Friends,
I have developed a standalone java application which is deployed in a Linux environment. I have created a script for starting this application if the process is not running or else do nothing.
The application is deployed as a .jar. I have also created a crontab entry like this...
Code:
*/1 * * * * /app/prd-data/abc/def/xyzMonitor.sh
This is the contents of the xyzMonitor.sh script...
Code:
#!/bin/bash
# check daemon
ps -ef | grep -v grep | grep common.App
# if not found - notequals to 0, start it
if [ $? -ne 0 ]
then
nohup /app/wl-data/Oracle/Middleware/jdk160_21/bin/java -cp Application.jar *.common.App &
else
echo "XYZ Watcher already running - do nothing"
fi
The issue now is that even after one minute the crontab is not picking the script for running this application.
Can someone help me what is the issue here, whether the script is not correct or any others.
P.S: I am a Linux noob and this development is done for my company. I have done the deployment by getting info from various websites. So I might be wrong in this.
Experts please advice to solve this issue.
I ve tried to initialise a GUI application by giving an entry in the CRONTAB. But its not working.could any one tell me how can I get this? (0 Replies)
Hi All,
I want to write a shell script which will start some application lets say "Windows media player".
Please let me know your inputs.
Thanks in advance,
Niyati (0 Replies)
I am using Solaris 9. I wish to run my script every 1 minute inteval. Though i can run it using below entry in crontab.
* * * * /export/home/username/script/file_exist_&_run.sh
in short above script will check whether a specific file exist in a directory. If it found it will inovke another... (10 Replies)
Hi can any one help me out.
while running crontab , m getting error bad minute time..
how to resolve this error.
i created 1 txt file a.cron
mirrordir -vm \home\t \homet1
& i saved it.
then i created a crontab file ..with
crontab -e
& i added a line in it.
* 1 * * * \root\a.cron
& i save... (2 Replies)
Hi, I've been trying to develop a script that performs the parsing of a log every 1 minute and then generating some statistics. I'm fairly new to programming and this is why I come to ask if I can lend a hand.
this is my log:
xxxx 16/04/2012 17:00:52 - xxxx714 - E234 - Time= 119 ms.... (8 Replies)
Hello,
I installed Jboss EAP 6 on a remote Linux server in standalone mode, and deployed a HelloWorld war file successfully.
Opened a browser on my PC and pointed to http://127.0.0.1:8080/filename. I can see “Hello World!” on my browser. However, if the browser points to http://server's... (3 Replies)
e.g.
File name: File.txt
cat File.txt
Result:
#INBOUND_QUEUE=FAQ1
INBOUND_QUEUE=FAQ2
I want to get the value for one which is not commented out.
Thanks, (3 Replies)
Hi All,
My application uses three different sub-services to make complete application up and running to normal.
The entry of all the three services are present in /etc/init.d directory with proper softlink created to application home path where it actually exists.
In one rare case one of the... (3 Replies)
Discussion started by: hk_kamozalwar
3 Replies
LEARN ABOUT SUNOS
asadmin-list-components
asadmin-list-components(1AS) User Commands asadmin-list-components(1AS)NAME
asadmin-list-components, list-components - Lists deployed components
SYNOPSIS
list-components --user admin_user[--password admin_password][--host localhost] [--port 4848][--secure|-s][--passwordfile filename]
[--terse=false] [--echo=false] [--interactive] [--type application|ejb|web|connector]
list-components lists your deployed J2EE components. If the --type option is not specified, all components are listed. The available type
values are: application (default), ejb, web, and connector. This command is supported in remote mode only.
OPTIONS --user authorized domain application server administrative username.
--password password to administer the domain application server.
--host machine name where the domain application server is running.
--port port number of the domain application server listening for administration requests.
--secure if true, uses SSL/TLS to communicate with the domain application server.
--passwordfile file containing the domain application server password.
--terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-
formatted data for consumption by a script.
--echo setting to true will echo the command line statement on the standard output.
--interactive prompts you for the required options that are not already specified.
--type identifies the type of component to be listed; defaults to application.
Example 1: Using list-components
asadmin> list-components --type application
sampleApp J2EE-application
Command list-components executed successfully
Where: the applications that were deployed are listed.
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-show-component-status(1AS), asadmin-list-sub-components(1AS)J2EE 1.4 SDK March 2004 asadmin-list-components(1AS)