01-17-2009
Quote:
Originally Posted by cfajohnson
Setting the SUID bit does not work for scripts on most systems (including Linux).
I wasn't aware of that! Why's it still there? It's certainly there and works on Solaris.
10 More Discussions You Might Find Interesting
1. HP-UX
Cant Get Netscape to work... I get this messsage:
Perhaps there is a problem with your name server? if your site must use a non-root name server, you will need to set the $SOCKS_NS environment variable to point at the appropreate name server. It may (or may not) be necessary to set this... (2 Replies)
Discussion started by: Eric_Bakken
2 Replies
2. Shell Programming and Scripting
i have this script i wrote, it chokes when running the add install client commandit keeps telling me the add_install_client command is incorrect.
When I put the print statement in front of the command so it will echo it, the command looks right on the screen. Yes im am an ametuer, im trying to... (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
3. UNIX for Dummies Questions & Answers
I am trying to do a head on a mainframe file and on doing ti just gives me a blank screen with nothing on it.
however, when i do a tail for the same file...i get a few lines on the screen.
i know tht mainframe files have all the records on one line...does this have to do something with this.... (10 Replies)
Discussion started by: alfredo123
10 Replies
4. Shell Programming and Scripting
Hey guys i'm creating a dos style rename script, so if a user types say q14.* as the 1st param and b14.* as the 2nd and will rename all q14 files to b14 but keep the extensions, so i've developed nearly the full script "i think", if i use echo(echo "if $1 had been renamed it would now be... (3 Replies)
Discussion started by: fblade1987
3 Replies
5. OS X (Apple)
just downloaded Ajaxterm-0.10 on my Mac 10.5.8 and after a ./ajaxterm.py i get:
AjaxTerm at http://localhost:8022/
which looks ok but as soon i go to the website:
./ajaxterm.py:418: DeprecationWarning: 'I' format requires 0 <= number <= 4294967295
fcntl.ioctl(fd,... (0 Replies)
Discussion started by: berot3
0 Replies
6. Shell Programming and Scripting
For some reason when I run these separately they work but when they are in a script file the second wont:
printf "%s\n" "$RANDOM"."$RANDOM" "$RANDOM"."$RANDOM" "$RANDOM"."$RANDOM" "$RANDOM"."$RANDOM" | tee $HOME/bpl/random
RANDOM1=$( <$HOME/bpl/random ) Anyone know why? (8 Replies)
Discussion started by: pkohn11
8 Replies
7. Solaris
This is my first script and I wont get it working.. sorry for being a total noob but here it is:
#./bin/sh -x
echo "1:st argument = $1";
echo "2:nd argument = $2";
grep "$1" "$2"
In the terminal I write, for example, su.sh sausage sausage.txt
Also tried su.sh "sausage" "sausage.txt" but... (2 Replies)
Discussion started by: Prantare
2 Replies
8. UNIX for Dummies Questions & Answers
I just installed a fork of opensolaris, and I really like it.
I would hate going back to Ubuntu, But one issue, I cannot get my Dell Wireless 1450 Wireless USB Adapter working.
On Ubuntu 10.4 I just installed nonfree firmware, but I guess it doesn't work that way on Solaris, any help would be... (5 Replies)
Discussion started by: Stormos
5 Replies
9. Solaris
Hi,
I was asked to connect a KVM screen to a Sun Fire V440 last night so I connected it up but no joy and nothing on the KVM screen. I was told that a reboot may fix the problem so connected to the ALOM and rebooted. On the plus side, the KVM screen now works but I lost the ALOM connection.
... (0 Replies)
Discussion started by: jimmy54321
0 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have setup my .profile with some helpful aliases and some set commands in it.
I have it as:
alias gr='autorep -G'
alias c='clear'
alias x='exit'
alias wcl='wc -l'
alias l1='ls -1 "$@"'
alias ll='ls -l "$@"'
alias la='ls -altr "$@"'
alias l='ls -ltr "$@"'
alias ml='m_ls -ltr... (5 Replies)
Discussion started by: grep_me
5 Replies
LEARN ABOUT SUNOS
ppmtopgm
ppmtopgm(1) General Commands Manual ppmtopgm(1)
NAME
ppmtopgm - convert a portable pixmap into a portable graymap
SYNOPSIS
ppmtopgm [ppmfile]
DESCRIPTION
Reads a portable pixmap as input. Produces a portable graymap as output. The output is a "black and white" rendering of the original
image, as in a black and white photograph. The quantization formula used is .299 r + .587 g + .114 b.
Note that although there is a pgmtoppm program, it is not necessary for simple conversions from pgm to ppm , because any ppm program can
read pgm (and pbm ) files automatically. pgmtoppm is for colorizing a pgm file. Also, see ppmtorgb3 for a different way of converting
color to gray. And ppmdist generates a grayscale image from a color image, but in a way that makes it easy to differentiate the original
colors, not necessarily a way that looks like a black and white photograph.
QUOTE
Cold-hearted orb that rules the night
Removes the colors from our sight
Red is gray, and yellow white
But we decide which is right
And which is a quantization error.
SEE ALSO
pgmtoppm(1),ppmtorgb3(1),rgb3toppm(1),ppmdist(1),ppm(5),pgm(5)
AUTHOR
Copyright (C) 1989 by Jef Poskanzer.
10 April 2000 ppmtopgm(1)