08-08-2013
Process p = Runtime.getRuntime().exec("/bin/hostname");
I am afraid the above code snippet is not uniform across all platforms. For example /bin/hostname might work in UNIX but not in Windows.
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all
need your help.
I am wrting a script that will load data into the table.
then on another load will append the data into the existing table.
Regards
Ankit (1 Reply)
Discussion started by: ankitgupta
1 Replies
2. UNIX for Advanced & Expert Users
Hi, I was thinking about beowulfing some computers... but I was wondering, is it possible to run a dual OS like Windows and BSD simultaneously and still get the same effect, as all these computers running together like one system? And of course I do mean running the same way in an OS like Windows.... (1 Reply)
Discussion started by: heliotos
1 Replies
3. BSD
Hey all,
This is my first post and I'm a brand new unix user. Just to let ya know, my technical knowledge consists of windows and linux(Ubuntu, Fedora, Sabayon, and Arch Linux), so I'm not a complete NOOB at using unix-like OSes. Anyway, I installed FreeBSD 8.1 yesterday and everything is... (0 Replies)
Discussion started by: nathanbrownitt
0 Replies
4. Red Hat
Hello,
I need to repack a file inside several java archives (nested .jar files) with or without overwrite.
I am using a manual approach with mc, but it's painfully slow progress.
For example I want to refresh a file deep inside a java archive (with nested .jar files):
I have a java... (0 Replies)
Discussion started by: Laurentiu
0 Replies
5. UNIX for Dummies Questions & Answers
Hi,
jar -tvf tools.jar | grep LinkInfoImpl
Output:
4968 Fri Feb 22 02:34:52 EST 2008 com/sun/tools/doclets/formats/html/LinkInfoImpl.class
However, i need the similar output for all jar files under /apps/lib/ directory and its subdirectories.
Can you please help format my command to... (3 Replies)
Discussion started by: mohtashims
3 Replies
6. UNIX for Dummies Questions & Answers
Hello, on my hostserver i see one VPS of mine got load of 200.00 and netstat nothing (not a single blank line on netstat command) after some time, netstat started showing connections, but i see no excessive IP connections.
tail -f /var/log/httpd/access_log shows no activity
/var/log/messages ;... (1 Reply)
Discussion started by: postcd
1 Replies
LEARN ABOUT DEBIAN
mh_install
MAVEN(1) User Commands MAVEN(1)
NAME
Maven - Installs the POM files and the artifacts into /usr/share/maven-repo.
SYNOPSIS
mh_install [option]...
DESCRIPTION
Reads the file debian/$package.poms and installs each POM file listed in the .poms file, as well as the associated jars - assuming that at
least the --artifact option is given in the .poms file for all jars to install.
OPTIONS
-h --help: show this text
-V --version: show the version
-p<package> --package=<package>: name of the Debian package which
will contain all the files to install
-e<version>, --set-version=<version>: set the version for all artifacts,
do not use the version declared in the POM files.
-r<rules> --rules=<rules>: path to the file containing the
rules to apply when cleaning the POM files. Optional, the default location is debian/maven.rules
-u<rules> --published-rules=<rules>: path to the file containing the
extra rules to publish in the property debian.mavenRules in the cleaned POM. Optional, the default location is debian/maven.pub-
lishedRules
-i<rules> --ignore-rules=<rules>: path to the file containing the
rules used to remove certain dependencies from the cleaned POM Optional, the default location is debian/maven.ignoreRules
--no-publish-used-rule: don't publish the rule used to transform
a POM's own attributes in debian.mavenRules
-v --verbose: show more information while running
-n --no-act: don't actually do anything, just print the results
The $package.poms file must contain enough information to locate the jar files to install, and to associate them with their POM file. For
each POM file associated with a jar, we need to supply at least the --artifact parameter.
See also: mh_installpoms(1), mh_installjar(1)
Maven Repo Helper version 1.7.1 January 2012 MAVEN(1)