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
hash::case::upper
Hash::Case::Upper(3pm) User Contributed Perl Documentation Hash::Case::Upper(3pm)
NAME
Hash::Case::Upper - native hash with enforced lower cased keys
INHERITANCE
Hash::Case::Upper
is a Hash::Case
is a Tie::StdHash
SYNOPSIS
use Hash::Case::Upper;
tie my(%uchash), 'Hash::Case::Upper';
$uchash{StraNGeKeY} = 3;
print keys %uchash; # STRANGEKEY
DESCRIPTION
Hash::Case::Upper extends Hash::Case, which lets you play various trics with hash keys. In this implementation, the fake hash is case
insensitive and the keys stored in upper-case.
METHODS
Constructors
$obj->addHashData(HASH)
See "Constructors" in Hash::Case
$obj->addPairs(PAIRS)
See "Constructors" in Hash::Case
$obj->setHash(HASH)
See "Constructors" in Hash::Case
tie(HASH, 'Hash::Case::Upper', [VALUES,] OPTIONS)
Define HASH to have only upper cased keys. The hash is initialized with the VALUES, specified as ref-array or ref-hash. Currently,
there are no OPTIONS defined.
SEE ALSO
This module is part of Hash-Case distribution version 1.02, built on March 09, 2012. Website: http://perl.overmeer.net/hash-case/
LICENSE
Copyrights 2002-2003,2007-2012 by Mark Overmeer. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See
http://www.perl.com/perl/misc/Artistic.html
perl v5.14.2 2012-03-09 Hash::Case::Upper(3pm)