02-02-2003
Good Suggestions & Cool Scripts
I think you guys should gather up all of the cool, *handy* scripts that you post on this site along with other scripts members post and place them in their own category. Perderabo's date_calc script would be an excellent submission as would the mail script that someone posted that sends attachments. You could then point people there.
Surely you guys could find a clever name for the category. What do you think.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
What is a good way to find an entry in a .conf file and then remove all lines associated with that entry?
I have a Samba server running on Linux that I would like to easily add/remove share entries in the smb.conf file without removing or deleting lines that are not associated with that section.... (5 Replies)
Discussion started by: darthur
5 Replies
2. Solaris
Hello,
I'm going to be studying for my Solaris 9 System Administrator Certification and wondered if anyone had taken the exams and could recommend some good study guides / crams / books.
Cheers, (8 Replies)
Discussion started by: unrealuk
8 Replies
3. IP Networking
Here's a question I received on a test recently. I'm new to Linux/Unix so if this is easy, don't kill me. What scripting or tools could you use to count and sort the number of connections from each internal host? I'd appreciate any feedback and resources.
"The Cisco PIX firewall provides... (5 Replies)
Discussion started by: daveohr
5 Replies
4. Shell Programming and Scripting
I have a program (say, MyProgram) written in Bourne-shell script, but at some point it calls another script written in pearl, as illustrated below:
#!/bin/sh
.....
case $x in
1) ConfigSystem1 ( b-shell script)
2) ConfigSystem2 ( pl)
3) ConfigSystem3 (b-shell)
....
Then I create... (0 Replies)
Discussion started by: bluemoon1
0 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I want to calculate CPU utlization and memory utilization on solaris box..!
could some one help me out on this topic..!
right now i am using TOP command for both the values..! i want this to automated..!
script should some thing like
CPU utilization = (100-ideal value)%... (2 Replies)
Discussion started by: bullz26
2 Replies
6. Solaris
Hi gentlemen.
For what intended is the directory /usr/local/bin? In this directory are some script.
I don't understand how these scripts being in this directory are started.
Each time after registration of the user occurs start of these scripts. These scripts start applications. (7 Replies)
Discussion started by: wolfgang
7 Replies
7. Shell Programming and Scripting
Dear All,
Pls find my scripts for Agent services strat & stop.
EAMSROOT=/opt/panaces
export EAMSROOT
cd $EAMSROOT
nohup ./OracleAgent.sh start &
nohup ./PFRAgent.sh start &
nohup ./PFR.sh start &
nohup ./SolarisOSAgent.sh start &
exit 0
EAMSROOT=/opt/panaces
export EAMSROOT
cd... (0 Replies)
Discussion started by: starnaresh
0 Replies
8. Shell Programming and Scripting
hi,
i am new in unix.......i am using bash and i want to create a user which has only some command and scripts permission.........is it possible?
thanx (1 Reply)
Discussion started by: rakeshtomar82
1 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write an awk script(company.awk) for the workers file to find the number of workers of each departman, total... (8 Replies)
Discussion started by: RedJohn
8 Replies
CHCAT(8) User Commands CHCAT(8)
NAME
chcat - change file SELinux security category
SYNOPSIS
chcat category file...
chcat -l category user...
chcat [[+|-]category...] file...
chcat -l [[+|-]category...] user...
chcat [-d] file...
chcat -l [-d] user...
chcat -L [ -l ] [ user ... ]
DESCRIPTION
Change/Remove the security category for each file or user.
Use +/- to add/remove categories from a file or user.
Note: When removing a category you must specify '--' on the command line before using the -Category syntax. This tells the command that
you have finished entering options and are now specifying a category name instead.
-d delete the category from each FILE/USER.
-L list available categories.
-l Tells chcat to operate on users instead of files.
SEE ALSO
chcon(1), selinux(8), semanage(8)
When operating on files this script wraps the chcon command.
FILES
/etc/selinux/{SELINUXTYPE}/setrans.conf
/etc/selinux/{SELINUXTYPE}/seusers
chcat September 2005 CHCAT(8)