10-25-2007
Error message while executing the shell script
Hi All,
When I am trying to execute the below shell script I got this error message.
script
==========
#!/bin/bash
/usr/java/jdk1.5.0_10/bin/java - classpath /var/lib/asterisk/agi-bin/mysql-connector-java-3.0.15-ga-bin.jar/:
/var/lib/asterisk/agi-bin/jarfiles:
/var/lib/asterisk/agi-bin/800PBXMAIN.jar: com pbx main PBXMain $1 $2 $3 $4 $5 $6 $7
Error
=======
Unrecognized option: -
Could not create the Java virtual machine.
./800PBXMAIN.sh: line 3: /var/lib/asterisk/agi-bin/jarfiles:: No such file or directory
./800PBXMAIN.sh: line 4: /var/lib/asterisk/agi-bin/800PBXMAIN.jar:: No such file or directory
The jarfiles directory and 800PBXMAIN.jar file are in their respective directories.
Thanks & Regards
Ajay Singh Yaduwanshi
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
this is a simple script
#! /bin/bash
FileCnt=`ls -lrt $DIR/* | wc -l`
echo $FileCnt
how could i escape the error msg if there are no files in $DIR
ls: /home/sayantan/test/files/cnt/*: No such file or directory
0
Looking forward for a quick reply
Regards, Newbie... (3 Replies)
Discussion started by: newbie07
3 Replies
2. Shell Programming and Scripting
Hi Gurus,
I've a find command that gets the list of files from a source directory where the extension is not html, xml, jsp, shtml or htaccess. The below find command runs fine from the command prompt or in a shell script. I need to eventually run it in a PERL script and am getting the... (5 Replies)
Discussion started by: voorkey
5 Replies
3. Shell Programming and Scripting
Hi,
I have following shell script code :
------------------------------------------------------------------
#!/bin/bash
SCRIPTS_DIR="/scriptsDir1"
# tables login/password
APIL_USER="uname/pswd"
I2_USER="uname/pswd"
# Database
DB="db1"
cd "$SCRIPTS_DIR/scriptsDir2"
sqlplus... (2 Replies)
Discussion started by: Chaitrali
2 Replies
4. Linux
Hi,
I have following shell script code :
------------------------------------------------------------------
#!/bin/bash
SCRIPTS_DIR="/scriptsDir1"
# tables login/password
APIL_USER="uname/pswd"
I2_USER="uname/pswd"
# Database
DB="db1"
cd "$SCRIPTS_DIR/scriptsDir2"
sqlplus... (1 Reply)
Discussion started by: Chaitrali
1 Replies
5. Shell Programming and Scripting
Hi Gurus,
I am new to scripting and needs your help in expect script used for telnet. I wrote a simple script as
#!/usr/bin/expect-5.43 -f
spawn telnet localhost 2233
expect "password:"
send "secret\r"
send "i data.cnbc.com\r"
send "exit\r"
expect eof
When I am trying to execute... (2 Replies)
Discussion started by: niks_yv
2 Replies
6. Shell Programming and Scripting
Hi,
I have situation where i need to automate transferring 10000+ files using sftp.
while read line
do
if ; then
echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt
fi
done< files.txt
sftp -b sftpCommand.txt stu@192.168.2.1
The above... (1 Reply)
Discussion started by: noobrobot
1 Replies
7. Shell Programming and Scripting
Guys,
when i am executing the following script I am getting following error.
-bash: test.sh: command not found
$ test.sh -- script name
#! /bin/bash
echo " Job started........"
CURRENTDIR=`pwd`
exit 0
thanks
Please view this link: How to use ... tags (2 Replies)
Discussion started by: skatpally
2 Replies
8. Shell Programming and Scripting
LD_LIBRARY_PATH=~/tme-0.8/bus/multibus:~/tme-0.8/bus/sbus:~/tme-0.8/dist/softfloat/softfloat/bits32:~/tme-0.8/dist/softfloat/softfloat/bits64:~/tme-0.8/generic:~/tme-0.8/host/bsd:~/tme-0.8/host/gtk:~/tme-0.8/host/posix:~/tme-0.8/ic:~/tme-0.8/ic/ieee754:~/tme-0.8/ic/m68k:~/tme-0.8/ic/sparc:~/tme-0.8/... (1 Reply)
Discussion started by: lucky7456969
1 Replies
9. Shell Programming and Scripting
hi all,
i have a unix script where i am calling a database procedure from it. while executing the procedure i am getting an error:
but when i tried to call the same procedure manually then it ran successfully, i goggled this issue and found timezone.dat file missing at... (0 Replies)
Discussion started by: lovelysethii
0 Replies
10. Shell Programming and Scripting
Hi Gurus,
The following script fails with the error 'command not found' while trying to execute. As the error indicates, the script fails at ROW#30 where the EOF is defined for SQL statement.
It appears that the script is trying execute the lines in the SQL output written to ta spool file.... (7 Replies)
Discussion started by: svajhala
7 Replies
LEARN ABOUT DEBIAN
jh_manifest
JH_MANIFEST(1) Javahelper JH_MANIFEST(1)
NAME
jh_manifest - Adds or/and modifies manifests for jars
SYNOPSIS
jh_manifest [debhelperoptions] [options] jar1 ... jarN
jh_manifest [debhelperoptions] [options]
DESCRIPTION
Javahelper tool to add or update manifests in a jar file. It can be used in two modes. If passed jar files, it will only process these jar
files. Otherwise it will update all jar files in the packages it acts on.
When processing a package, the debhelper(7) exclude option will make jh_manifest ignore matching jar files.
FILES
debian/package.manifest (or debian/manifest)
This file consist of a list of jar files and values to add to their manifests. Values in this file will take precedence over values in
the original manifest (and command line arguments over values in this file).
It is allowed to list a link in this file instead of an actual jar file, provided that the link can be resolved when jh_manifest
processes it.
If a jar file is listed here cannot be found, jh_manifest will print a warning, unless the jar file has been excluded.
As of javahelper >= 0.32, you may add comments in this file. If the line starts with a "#" it is completely ignored.
This file is ignored if jh_manifest is passed jar files via command line.
OPTIONS
-c classpath, --classpath=classpath
Sets the Class-Path attribute of all processed jar files to classpath.
If not passed, then the CLASSPATH environment variable will be used in the given jar file do not have a Class-Path attribute.
-m class, --main=class
Sets the Main-Class attribute to class in all processed jar files.
-o options, --javaopts=options
Sets the Debian-Java-Parameters to options in all processed jar files. This attribute is used by jarwrapper to start java with extra
options (e.g. to make more memory available).
-j /path/to/java/home, --java-home=/path/to/java/home
Sets the Debian-Java-Home attribute to /path/to/java/home in all processed jars. This attribute is used by jarwrapper to determine
which JVM to use.
EXAMPLES
An example debian/manifest file:
# use the symlink so we do not have to update with the next upstream release.
usr/share/java/my.jar:
Class-Path: dep1.jar dep2.jar
Main-Class: some.awesome.Class
usr/share/java/dep2.jar:
Class-Path: dep1.jar
SEE ALSO
debhelper(7)
This program is a part of javahelper and uses debhelper as backend. There are also tutorials in /usr/share/doc/javahelper.
AUTHOR
Niels Thykier <niels@thykier.net>
COPYRIGHT AND LICENSE
Copyright 2010 by Niels Thykier
This tool is free software; you may redistribute it and/or modify it under the terms of GNU GPL 2.
0.43 2012-03-12 JH_MANIFEST(1)