Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #26528

Re: Bash script not working as commandline MySQL JDBC

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Robert Klemme <shortcutter@googlemail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Bash script not working as commandline MySQL JDBC
Date Sun, 17 Nov 2013 20:01:46 +0100
Lines 26
Message-ID <besi50FhhooU1@mid.individual.net> (permalink)
References <7f1a4290-6ce6-4673-a411-62dbb326ef99@googlegroups.com> <82164d93-e023-4b3e-82a7-cf7247a1e0e1@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net YsmGyt0JfNlGXmODRMH7+gER6ptlm1WENKM1CNuuonhtgqx4s=
Cancel-Lock sha1:ErAET+wBLvGCuz/v1gmk5XbBxdY=
User-Agent Mozilla/5.0 (Windows NT 6.0; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
In-Reply-To <82164d93-e023-4b3e-82a7-cf7247a1e0e1@googlegroups.com>
X-Antivirus avast! (VPS 131116-1, 16.11.2013), Outbound message
X-Antivirus-Status Clean
Xref csiph.com comp.lang.java.programmer:26528

Show key headers only | View raw


On 17.11.2013 18:16, RVic wrote:
> The script is the same as the command itself (in fact, when I run the
> command from the command line, I simply copy it from the text of the
> script and paste it into the terminal window):
>
> ggrip.sh -------- exec java -classpath
> .:$CLASSPATH:/home/user/ggrip/upserver/mysql-connector-java-5.1.26-bin.jar:/home/user/ggrip/upserver/GGUser.jar
> GG.GGServer "127.0.0.1:3306" ggripserver1 ggripv2 root root

I'm not assuming that it's related to the error but you should quote 
your classpath properly.

As Mark said: use shell debugging (insert "set -x" at top of script and 
also in the interactive shell).

Also, "type java" might give you an idea whether "java" is an alias on 
your command prompt.

Cheers

	robert


-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bash script not working as commandline MySQL JDBC RVic <rvince99@hotmail.com> - 2013-11-17 08:40 -0800
  Re: Bash script not working as commandline MySQL JDBC markspace <markspace@nospam.nospam> - 2013-11-17 08:56 -0800
  Re: Bash script not working as commandline MySQL JDBC RVic <rvince99@hotmail.com> - 2013-11-17 09:16 -0800
    Re: Bash script not working as commandline MySQL JDBC Robert Klemme <shortcutter@googlemail.com> - 2013-11-17 20:01 +0100
    Re: Bash script not working as commandline MySQL JDBC Steven Simpson <ss@domain.invalid> - 2013-11-17 19:34 +0000
  Re: Bash script not working as commandline MySQL JDBC RVic <rvince99@hotmail.com> - 2013-11-17 12:38 -0800
    Re: Bash script not working as commandline MySQL JDBC Robert Klemme <shortcutter@googlemail.com> - 2013-11-17 22:06 +0100
    Re: Bash script not working as commandline MySQL JDBC Mike Amling <mamling@chaff.us> - 2013-11-17 16:09 -0600

csiph-web