Some _VERY_ basic *nix documentation.

Page 3 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Does Linux have the script command?
DESCRIPTION
script makes a typescript of everything printed on your terminal. It is
useful for students who need a hardcopy record of an interactive session
as proof of an assignment, as the typescript file can be printed out lat-
er with lpr(1).
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
It looks like script in debian is part of bsdutils, which I think is installed by default. I remember finding script on netbsd a while back, then looking for it on debian and finding it also had it (already installed).
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
I know Solaris has it (that's where I first learned about it). So I might add a quick note about script. It's really useful for documenting install processes. :)
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Is there anything else people want to see? Keep in mind, I'm going to try and keep it as OS independant as possible, so no "How do I do this in Linux?" suggestions. ;)

Maybe a quick vi tutorial, with a couple of the extras that helped me actually like the editor? A very general security doc? Setting up and using NFS?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
You want watch on Solaris? Here:

#!/bin/sh
$2
sleep $1
$0 $1 $2

Should work. :p That's what I thought of when I read your description. I've written that script a million times. ;)
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
That'll spawn a TON of shell instances. exec $0 $1 $2 wouldn't, I believe. Also, I can't figure out how to make it work with commands that have arguments.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: BingBongWongFooey
That'll spawn a TON of shell instances. exec $0 $1 $2 wouldn't, I believe. Also, I can't figure out how to make it work with commands that have arguments.

It was a simple example. :p Shell scripting is one of the MANY MANY things I suck at.
 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
Originally posted by: n0cmonkey
Originally posted by: BingBongWongFooey
That'll spawn a TON of shell instances. exec $0 $1 $2 wouldn't, I believe. Also, I can't figure out how to make it work with commands that have arguments.

It was a simple example. :p Shell scripting is one of the MANY MANY things I suck at.

Join the club :)

watch seems a tad more convenient ;)
 

Klixxer

Diamond Member
Apr 7, 2004
6,149
0
0
Originally posted by: Sunner
Solaris doesn't have "watch".
I think it's Linux/GNU exclusive.

Watch works just fine on my Solaris box :D

Which version are you running?
 

Klixxer

Diamond Member
Apr 7, 2004
6,149
0
0
Originally posted by: Sunner
Originally posted by: Klixxer
Originally posted by: Sunner
Solaris doesn't have "watch".
I think it's Linux/GNU exclusive.

Watch works just fine on my Solaris box :D

Which version are you running?

Tried on 7 and 9.

I have a 7 cvs box and it works just fine on it, have you installed it?
 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
Originally posted by: Klixxer
Originally posted by: Sunner
Originally posted by: Klixxer
Originally posted by: Sunner
Solaris doesn't have "watch".
I think it's Linux/GNU exclusive.

Watch works just fine on my Solaris box :D

Which version are you running?

Tried on 7 and 9.

I have a 7 cvs box and it works just fine on it, have you installed it?

Most of our Solaris installations are just the usual "Everything except OEM support", mostly since the Solaris installer sucks bigtime :)

The ones I tested it on are, so they should include everything save for some hardware support.
Maybe it's on the companion CD?

Do you know which package it belongs to?