Search Results

Search: Posts Made By: ibzee33
3,898
Posted By ibzee33
ooh i forgot about that!!! i need to run it on...
ooh i forgot about that!!! i need to run it on the school server!! sorry :D

Thanks a lot for the help
3,898
Posted By ibzee33
so i modified the code as u suggested and im...
so i modified the code as u suggested and im still not getting any output, i tried looking over it, but i still don't understand how it works.

who > temp
user=$(whoami | cut -d" " -f1)
...
3,898
Posted By ibzee33
haha, i was looking for the person who said it to...
haha, i was looking for the person who said it to quote him and for some reason i read all the previous replies except yours :D

can you please explain the code you wrote down,
- what are the...
3,898
Posted By ibzee33
my "who" command outputs 5 fields: - username ...
my "who" command outputs 5 fields:
- username
- terminal
- date
- time
- ip

i think (cut -d" ") deals with each space " " as a separate field, so that's why i end up using 13, 14. I'm sure...
3,898
Posted By ibzee33
so i tried using the code below to modify my...
so i tried using the code below to modify my script, but i got the same thing, no syntax and no output, i think the mistake is in the way i try to write to the logfile



here is my attempt

...
3,898
Posted By ibzee33
@scottn: i have a couple of questions, what...
@scottn: i have a couple of questions,

what is this command, awk '{print $1}' is it compatible with Fedora?

what is the output for this?!
lines=$(wc -l < ./temp)

i used this command to...
3,898
Posted By ibzee33
No Syntax Error and No Output
Hello All,

this script should use the command who, to log the Full Name, Date, and IP Address of the users who are connected to the system in a file called logfile. Excluding the user running the...
3,339
Posted By ibzee33
i already changed the wrong parts of the code,...
i already changed the wrong parts of the code, those errors are before modifying the code, i just submitted the errors for the heck of it :)
3,339
Posted By ibzee33
@ygemici, methyl, jlliagre - Thanks alot for the...
@ygemici, methyl, jlliagre - Thanks alot for the help, i corrected the code, and now its working fine, i should have posted it before handing it in.

i have a question though,
- as for the (date...
3,339
Posted By ibzee33
Script Gone Wrong
Hello all,

so this is a script i did for an assignement,
- first option greets the user according to the time after fetching his name
- second options isn't implemented
- third check the...
1,825
Posted By ibzee33
thank you for the help
thank you for the help
1,825
Posted By ibzee33
assuming i got the host name, is there a way to...
assuming i got the host name, is there a way to find the IP using it?
1,825
Posted By ibzee33
oh, I'm currently running unix on my laptop, so...
oh, I'm currently running unix on my laptop, so when i run the who command i get,

user name tty1 date time (:0)

I'm assuming the (:0) would be the IP on a computer connected to a network?...
1,825
Posted By ibzee33
Log information
hello all,

so i'm working on a script, and part of it is to display the log info of the current logged on users,

1- full name
2- last log-in time
3- source ip address

i used who command to...
Showing results 1 to 14 of 14

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