Search Results

Search: Posts Made By: mikejreading
4,051
Posted By mikejreading
The time like a clock. Basically, i am making a...
The time like a clock. Basically, i am making a menu driven programme and i would like to have a "clock" on the top of each menu page.

The only way I have been able to make it work at the minute...
4,051
Posted By mikejreading
Yes... that's not what i want. By current time, i...
Yes... that's not what i want. By current time, i meant constant current time. Not the time when the script is run. I want the time to constantly update while the script is running.
4,051
Posted By mikejreading
Constant update echo in BASH
Hi all,

Basically Im trying to put the current time in a script in BASH. Tried the watch command, but its not really what I want.

I will have lots of things in this script, current date and...
1,464
Posted By mikejreading
urm... it doesnt at the min however i could awk...
urm... it doesnt at the min however i could awk in the date aswell if that would help
1,464
Posted By mikejreading
Sorry, it was late last night, and I wasn't being...
Sorry, it was late last night, and I wasn't being very clear. (I actually posted the entire wrong situation).

In that file there is a column with a list of times (as above), and various other...
1,464
Posted By mikejreading
Selecting certain times from a list
Hi all,

I have a list of times:
...10:02
15:34
20:05
01:51
06:55
09:00
05:52...

That's just part of the list (its huge).

How do I go about selecting certain times, e.g. just...
1,376
Posted By mikejreading
Never mind, realised I was being stupid and not...
Never mind, realised I was being stupid and not using quotes :-)
1,376
Posted By mikejreading
Sed help
Hi all,

Im being a bit thick,

I have output:
(06:15)
(01:12)

Showing the amount of time a user has been logged in, how do i delete the ( & ) using sed??

Cheers
3,022
Posted By mikejreading
thanks guys, All methods work. Thanks for...
thanks guys,

All methods work. Thanks for the idea of getting rid of all the system users, never thought of that!!

Cheers!
3,022
Posted By mikejreading
Showing offline users
Hi,

Is there any command for showing offline users?

The only way I can think of doing it (as i cant find a command) is getting a list of all the online users, and comparing it to...
2,890
Posted By mikejreading
ahhh, the was encasing it in [...] that i forgot....
ahhh, the was encasing it in [...] that i forgot.

Many thanks!
2,890
Posted By mikejreading
Comparing a variable to a string
Hi,

I am trying to write a script to show the status of a Network card.

Variables:

chosennic is a read variable
statuss=`/sbin/ifconfig $chosennic | grep MTU | awk '{print $1}'`...
9,371
Posted By mikejreading
Perfect, thanks cfajohnson!
Perfect, thanks cfajohnson!
9,371
Posted By mikejreading
Command similar to watch
Hi all,

I am trying to create a file that shows the CPU usage, constantly updating (similar to TOP).

So far i have a file (called test) containing:
echo "The current CPU usage is:" `ps -e -o...
15,329
Posted By mikejreading
if there are always 3 slashes piping into the...
if there are always 3 slashes piping into the following will work

awk -F / '{print $4}'

Not sure if that's what you wanted, but I'm a beginner too. Hope it helped a little
14,344
Posted By mikejreading
I wanted to virtually send the command Ctrl & C...
I wanted to virtually send the command Ctrl & C into my script, as the case statement doesn't always end properly sometimes.

Unless there is a foolproof way to automatically end a script that I...
6,266
Posted By mikejreading
Sometimes it works fine the way it is.. just...
Sometimes it works fine the way it is.. just sometimes it takes me entering Q a few times before the script will actually end.

Is there a command to force end a script? Like virtually pressing...
6,266
Posted By mikejreading
Ending a script
Hi all,

I am trying to end a Menu script. Can people suggest various methods please?

At the moment I am doing:

quit=n
while [ "$quit" = "n" ]
do
...Code
Code
Code...
read userinput...
14,344
Posted By mikejreading
[Bash] Send Keys help
Hi all,

I have programmed in VB before, and have recently moved on to Bash.

In VB there is a command:
SendKeys {F12} > "Show Help"
SendKeys {Y} > "Answer Yes"

Is there any way of doing...
2,647
Posted By mikejreading
Thanks, that has listed all the unique users, how...
Thanks, that has listed all the unique users, how would I then calculate the amount of users, like who -q shows #users... any thoughts?
2,647
Posted By mikejreading
No... no joy :-(, who|uniq outputted...
No... no joy :-(,

who|uniq outputted exactly the same as the who command without the pipe.
2,647
Posted By mikejreading
Eliminating duplicates from the who command
I am trying to show how many users are logged into one of my systems. Using who -q it gives me a user count, but some users are logged in multiple times.

Is there any easy parameter that I can...
Showing results 1 to 22 of 22

 
All times are GMT -4. The time now is 12:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy