short script help


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting short script help
# 1  
Old 02-15-2004
short script help

how do i find out the date of the last time the system was last booted from?
# 2  
Old 02-15-2004
It would help if you'd tell us which system you're using. But try these:

uptime
last reboot
ps -fp 1
who -b
# 3  
Old 02-15-2004
sorry about not specifying the system, im using UNIX.
# 4  
Old 02-15-2004
Quote:
Originally posted by jodders
sorry about not specifying the system, im using UNIX.
What kind of Unix? Solaris, HP-UX, ... ?
# 5  
Old 02-16-2004
God,SUSE LinuX
# 6  
Old 02-16-2004
Quote:
Originally posted by jodders
God,SUSE LinuX
That helps. There are many different types of Unix, each of which may have a different command from the others to do the same thing. So it helps to know which type you use...
# 7  
Old 02-16-2004
on a side note you can question the validity that Linux (with its various distros) are a Unix.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Submitting awk script into cluster short.q

Hello, I want to submit my awk script into cluster queue as my job takes about forty minutes to finish so I can not run it on the main node. My awk script is like the following and I have three files. so, I write : qsub -q short.q Myscript.awk file1 file2 file3 It submits the work into... (1 Reply)
Discussion started by: Homa
1 Replies

2. OS X (Apple)

Shell Script to change desktop short cut Icon

I have installed my flash application using shell script. I have created short cut to desktop. Now i want to change the default short cut Icon. Please tell me script to change the short cut icon. ---------- Post updated at 12:54 AM ---------- Previous update was at 12:33 AM ---------- Working... (0 Replies)
Discussion started by: rohaneee
0 Replies

3. Shell Programming and Scripting

How do I do a short delay (milliseconds) in a shell script?

I need to put a small delay into a shell script. I'm looking for something smaller than "sleep" - a second is way too long. I want to sleep something like 10 milliseconds. I've tried "usleep" and "nanosleep", but the script doesn't recognize them. I'm using the bash shell but I'm willing to... (9 Replies)
Discussion started by: harmlesscat
9 Replies

4. Shell Programming and Scripting

translate a short csh script to bash

Hi, I have a csh: set NODES = `cat $HOST_FILE` set NODELIST = $TMPDIR/namd2.nodelist echo group main >! $NODELIST foreach node ( $NODES ) echo host $node >> $NODELIST end @ NUMPROCS = 2 * $#NODES I am very frustrated to translate it to bash: NODES = `cat... (3 Replies)
Discussion started by: rockytodd
3 Replies

5. UNIX Desktop Questions & Answers

Script that will display a short message

Can anyone point me to the right direction on how to write a simple script that will display a message on any terminal when implemented? Basically I need it so the script runs at a certain time, say April 30, 2010 and that the message will be displayed to me no matter which terminal I am logged... (2 Replies)
Discussion started by: jmack123
2 Replies

6. Shell Programming and Scripting

Looking for optimization advice on a short script

I already have a solution to my problem, but I'm looking to see if it can be made more succinct and faster. The problem: given a list, as shown below, extract the pathname for any file in a directory named 'ample' and return it's index into the list. The index is also in the data itself. Note that... (1 Reply)
Discussion started by: prigo
1 Replies

7. Shell Programming and Scripting

Short cut for su and cd ?

Situation: I've logged in as ordinary_user1; I can su to common_dev_user; When I su to common_dev_user, I'm taken to the HOME dir of common_dev_user; Everytime I need to cd to a particular folder from here (say like cd /developers/ordinary_user1/code/) This is a repetitive task (su ing and... (3 Replies)
Discussion started by: krishmaths
3 Replies

8. UNIX for Dummies Questions & Answers

short notice

Im getting stumped on one of my unix problems. Im a college student taking unix and for one of my assignments I am to write a few programs. I done the programs but on one of them I have to modify it by using sed instead of a while do loop. here's the while loop while do ... (2 Replies)
Discussion started by: gummiworm
2 Replies
Login or Register to Ask a Question