07-01-2011
Quote:
Originally Posted by
Perderabo
I guess some marketing dude rounded up a little bit. If stuff like that bothers you, try to avoid taking a close look at how big your disks are.
Thanks for this, now I can start my weekend with a smile!
10 More Discussions You Might Find Interesting
1. Solaris
how do i tell the processor speed on solaris 8? (2 Replies)
Discussion started by: csaunders
2 Replies
2. AIX
how do i determine the speed of a cpu on AIX 4.3.3 or 5.1? (5 Replies)
Discussion started by: csaunders
5 Replies
3. Solaris
Hi all,
I recently purchased a 440 MHz processor module for my Sun Ultrasparc 5 computer. I installed the module, updated the boot prom to the most recent version and when the machine starts up the initial white screen shows I have a 333 MHz processor installed !
I checked the details of the... (2 Replies)
Discussion started by: usparche
2 Replies
4. UNIX for Dummies Questions & Answers
I have an old pc, about 133-200 mhz with very little memory and hard-drive. I want to install a small and fast *nix system with ion or some other simple wm for maximal performance. It's supposed to be used as a desktop. If someone could share their experience with older machines and some... (2 Replies)
Discussion started by: riwa
2 Replies
5. UNIX for Dummies Questions & Answers
I don't know a lot of the world of Linux, but i want to start with an old machine; did someone knows if i can install Linux in a computer with a processor Pentium (not celeron) @ 133 Mhz, 98Mb in RAM (PC100) and 3Gb Hard Drive?
a friend tell me about Ubuntu and openSUSE, but I don't know if... (5 Replies)
Discussion started by: Omega
5 Replies
6. HP-UX
How can I get the CPUs speed without root permissions?
Thanks. (2 Replies)
Discussion started by: psimoes79
2 Replies
7. HP-UX
Need to find the CPU speed of HP UX for a non root login.
echo "itick_per_usec/D" | adb /stand/vmunix /dev/mem | tail -1 will give the following for non root users
ERROR: cannot open `/dev/mem', errno = 13, Permission denied (2 Replies)
Discussion started by: surajb
2 Replies
8. Linux
Hi
I am very new to Linux, but very keen to learn it.
I am having a desktop of 300 MHz with 128 MB RAM and 30 GB hard drive with Windows XP.
My first question is - Is there any version/flavour of Linux available that can be installed on above system especially Fedora with less compromise... (6 Replies)
Discussion started by: sanjay1979
6 Replies
9. HP-UX
I get my CPU speed use pstat APIs
use this program serach google and just test it
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/param.h>
#include <sys/pstat.h>
#define CPU_ID 0
#define HZ_PER_MHZ 1000000
int main()
{
struct pst_processor pst;
union pstun pu;
... (0 Replies)
Discussion started by: alert0919
0 Replies
10. Linux Benchmarks
CPU/Speed: 875 MHz
Ram: 2 GHz
Motherboard:
Bus: PCI
Cache: 2.25MB
Controller: SCSI
Disk: 2x SEAGATE ST373405LC 73 GB
Load: 1 user, idle
Kernel: 2.6.26-2-parisc
Kernel ELF?:
pgms: gcc version 4.3.2 (Debian 4.3.2-1.1)
Shell scripts (8 concurrent) 1 2 3
Dc: sqrt(2) to 99 decimal... (0 Replies)
Discussion started by: chatuser
0 Replies
LEARN ABOUT DEBIAN
shell-quote
SHELL-QUOTE(1p) User Contributed Perl Documentation SHELL-QUOTE(1p)
NAME
shell-quote - quote arguments for safe use, unmodified in a shell command
SYNOPSIS
shell-quote [switch]... arg...
DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands
or files with embedded white space or shell globbing characters safely. Here are a few examples.
EXAMPLES
ssh preserving args
When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and
passes them to "$SHELL -c". This doesn't work as intended:
ssh host touch 'hi there' # fails
It creates 2 files, hi and there. Instead, do this:
cmd=`shell-quote touch 'hi there'`
ssh host "$cmd"
This gives you just 1 file, hi there.
process find output
It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to
split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote:
eval set -- `find -type f -print0 | xargs -0 shell-quote --`
debug shell scripts
shell-quote is better than echo for debugging shell scripts.
debug() {
[ -z "$debug" ] || shell-quote "debug:" "$@"
}
With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can.
save a command for later
shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command
you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are
things the user can't pass through), you can do something like this:
user_switches=
while [ $# != 0 ]
do
case x$1 in
x--pass-through)
[ $# -gt 1 ] || die "need an argument for $1"
user_switches="$user_switches "`shell-quote -- "$2"`
shift;;
# process other switches
esac
shift
done
# later
eval "shell-quote some-command $user_switches my args"
OPTIONS
--debug
Turn debugging on.
--help
Show the usage message and die.
--version
Show the version number and exit.
AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions.
AUTHOR
Roderick Schertler <roderick@argon.org>
perl v5.8.4 2005-05-03 SHELL-QUOTE(1p)