Attention Shell Scripters


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Attention Shell Scripters
# 1  
Old 04-09-2007
Question Attention Shell Scripters

Hi mates,

Hope this is very simple for those who r well versed wth scripting but I'm literally new to scripting so please guys help me out in writing these basic scripts.I'm using Bash and Vi editor.

1 ....How to write a script that takes a file as an argument. The script should be able to determine what permissions the owner, group and everybody has for the file passed in. The output should be displayed similar to this.

READ WRITE EXECUTE
OWNER RICKY YES YES NO
GROUP USERS YES NO NO
EVERYBODY NO NO NO

2....Write a script to determine the percentage of system disk space you are using.


3 .....How to create a script which will allow you to find all users currently logged on to the system and display the processes they are running. The heading for each user must be their real name not their log in name.
I.e. my login name is lee.ballancore but my real name is Lee Ballancore
The users must not be displayed more than once.

cheers
# 2  
Old 04-09-2007
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Solaris sendmail not paying attention to virtusertable

I'm on Solaris 5.11 running sendmail. Local usernames are of the form <letters><numbers> (e.g. hn06511). In the past we used aliases to make point to <username>@olddomain.com. <username> <username>@olddomain.com Now there's a new email address scheme and a new domain. Now email... (8 Replies)
Discussion started by: defaria
8 Replies

2. What is on Your Mind?

Siri and the future of scripters, and people like us...

I think with the increasing use of things like siri and dragonspeak that have not only the ability to convert what you say into text but also act on it, we are entering an age of computing when the average user will just tell their computer what they want to do and the computer will do it for them.... (8 Replies)
Discussion started by: ifthanwhile
8 Replies

3. AIX

Attention Led on HMC

We use HMC to manage two logical partitions. LPARs don't have any problem but HMC's, itself, attention led is on. :eek: I am not sure if that's going to affect LPARs, but just wanted to be sure.... :confused: Has anyone come across such problem on HMC? Where can you suggest to look for logs... (1 Reply)
Discussion started by: royalliege
1 Replies

4. Shell Programming and Scripting

please pay your attention on this .......

HI All, I am working on Solaris 5.9 servers.Now i want a script which collect files with format like msgs_cheux301_10Jun2008 , login_cheux301_10Jun2008 and history_cheux301_10Jun2008.tar into seperate folders with a specific name. The script will collect files with one week old and it should... (2 Replies)
Discussion started by: Renjesh
2 Replies

5. AIX

Turn off attention LED ( P275)

How can I turn off the attention led (amber led)??. My machine is a P275 with AIX 5.2. Thanks for your time. Reinaldo F. Dias Unix Support Analyst PLM & Engineering T-Systems do Brasil (2 Replies)
Discussion started by: Reinaldo Dias
2 Replies

6. SCO

memfs.fs I/O Error - urgent attention please

Hy guys, During installation of machine (Pentium x86, 64MB RAM), well during booting SCO UnixWARE 7.1.1 diskette 1/2 i get following error (after SCO logo) "memfs.fs: I/0 error or unexpected EOF" Bootstrap Command Processor ... _ Please advise! (2 Replies)
Discussion started by: R@LE
2 Replies
Login or Register to Ask a Question