4,743 reputation
417
bio website timkennedy.net
location Virginia
age 41
visits member for 2 years, 3 months
seen 15 hours ago
stats profile views 125
Father, Husband, SysAdmin, Brother, Son. In reverse chronological order.

2d
comment Portable way to get script's absolute path?
i like it! so far, that's pretty portable. works on Solaris, OmniOS, Linux, Mac, and even Cygwin on Windows 2008.
May
20
comment Is it common to split larger script into multiple scripts and source them in the main script?
especially given that even the older OSes like Solaris are shipping with perl, and python, etc, now. one reason older systems used shell scripts is that the shell was guaranteed to always be available, but bigger Unices, like HP-UX and Solaris, and AIX, couldn't be guaranteed to include other tools.
May
18
comment Setting file permissions in bash script
@JamesAndino the /o=rwx filter is a permissions filter that looks for r(read), w(write),x(execute) bits being set. The o means to compare the filter to the other field. You could also specify u for user, or g for group. or combinations, like -perm -u=rwx,o=rwx to match on both the user and group permissions.
May
18
comment Setting file permissions in bash script
thanks for the correction.
May
17
comment What is rpc.statd, what ports should it be listening on, and how to kill it?
Yes. The NFS client will use rpc.statd and portmapper, both.
May
17
comment Utility script framework
+1 for script templates. the real key is education of those writing scripts. define policies, eg: All scripts will send email on failure. All scripts will log output to /var/log/scriptname.log. All scripts will rotate X iterations of logfiles. etc.
May
17
comment Rename two files
sorry @scottmarriott. i gave you a terribly unclear answer. hopefully the edit provides you the information you need to successfully execute your task.
May
17
comment Rename two files
was trying to provide a simple answer. I'll edit for clarity.
May
17
comment Line endings when using GNU Screen
echo $TERM. probably a difference in the screen termcap entry, and whatever your TERM is when not running screen.
May
14
comment How do I set an environment variable for sudo in MacOS?
i upvoted for the intent of the answer, and because I learned something new. note that OP is asking about JAVA_HOME, not PATH, though that's trivial and the answer would be the same.
May
7
comment Delete n minutes old file in solaris
I applaud your effort, @nolan6000
May
2
comment Delete n minutes old file in solaris
Depending on the version of Solaris being used, gfind may be there. Check /opt/sfw/bin, /usr/sfw/bin, and /opt/gnu/bin.
May
2
comment Autofs home folders from solaris 11
No, the user's don't need to exist on the solaris server. If you're using NFSv3, though, you will need to chown the home directories to the right UID and GID, if you want the remote users to be able to read and write to them. If you're using NFSv4, you can accomplish similar results setting ZFS ACLs for the read1 and read2 users (chmod A+user:$UID:full_set:fd:allow /export/home/$dir). I was unclear in my answer.
May
1
comment Wrap command in the prompt
mostly because i never thought of that. thanks for the idea. :)
May
1
comment Writing /dev/random to file?
@tkbx well, i'm dating myself, but back in the day you could cat a file to /dev/audio, and if it was a sound file (.wav) it would get played.
Apr
30
comment Get exit status of process that's piped to another
Great answer. I learned 2 things I never knew. :)
Mar
11
comment `solaris + xargs command for solaris
see if your system has gxargs, possibly in /usr/sfw/bin, or /opt/sfw/bin. Then you can use the GNU specific options.
Feb
12
comment RAID 1 + 0, Solaris 10
it's not SDS, but you can do that with ZFS. zpool create tank mirror c1t2d0 c1t3d0 mirror c1t4d0 c1t5d0. do you absolutely have to use older-style SDS metadevices?
Feb
6
comment Writing /dev/random to file?
@BobRoberts I has similar adventures, with similar outcomes. I also used to ssh into colleagues' linux workstations and cat DTMF tones to the internal speaker, then play a busy tone, so it sounded like their PC was trying to FAX something out. Ah, good times.
Feb
6
comment How to exclude NFS directories with find?
@DougO'Neal you should post that as an answer.