Script to Remove Fonts from Server


 
Thread Tools Search this Thread
Operating Systems Linux Script to Remove Fonts from Server
# 1  
Old 02-11-2009
Script to Remove Fonts from Server

hi
we need to be able to run a script to delete fonts from our production server.
It needs to be able to scan a set of volumes and check the file type then if it detects a font remove it.
Server is a IBM 3850 running Red Hat Enterprise 4 update 5
the san attached raid where the data is stored is using IBMS file system GPFS
I am no scripting expert and just maintain the server and applications, but the font issue is a real pain
hope someone can help
thanks
Treds
# 2  
Old 02-14-2009
If you know/suspect place where fonts appear then script should do
rm -rf /some/directory
If not, then use find for locating them:
Code:
find -name '*ttf' -exec rm {} \;


Last edited by Yogesh Sawant; 01-19-2011 at 05:15 AM.. Reason: added code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to have local shell variables in a ksh script seen on remove server in SSH block?

I have googled this and found many solutions, but none of them are working for me. I am in a korn shell, most others reference bsh, maybe that is the issue? Anyway, all I am trying to do is use a variable I have declared in my main script in a remote shell I am running through ssh. So I have a... (8 Replies)
Discussion started by: DJR
8 Replies

2. UNIX for Dummies Questions & Answers

Transfer file from server B to server C and running the script on server A

I have 3 servers A, B, C and server B is having some files in /u01/soa/ directory, these files i want to copy to server C, and i want to run the script from server A. Script(Server A) --> Files at Server B (Source server) --> Copy the files to Server C(Target Server). We dont have RSA key... (4 Replies)
Discussion started by: kiran_j
4 Replies

3. Red Hat

Ports opened on remove server

Hi Gents, I know we can use nmap & telnet to find remove server ports, any other way for the same ? thanks (1 Reply)
Discussion started by: heman96
1 Replies

4. Shell Programming and Scripting

How to create a shell script to remove the files on solaris server at 00000hrs?

Hi folks, As per mentioned in the title, how to create a shell script to delete those files from the server at 00000hrs every day? Thanks in advance :) (2 Replies)
Discussion started by: kimurayuki
2 Replies

5. Shell Programming and Scripting

Remove file conditionally between two server using sftp

Hi, I am having 2 servers, Need to delete files from server1 if those files exist in server2 other wise no action using sftp .And the process is non-interactive way. I have got confused how to check the condition in sftp because there is non of the shell condition or loop command is executing.... (2 Replies)
Discussion started by: posix
2 Replies

6. UNIX for Dummies Questions & Answers

Change the fonts in the shell script

Hi All, I want to change the font and colour while writing them to a .rtf file using a shell script. How can i do this? Thanks & Regards Dilip (1 Reply)
Discussion started by: DilipPanda
1 Replies

7. UNIX for Advanced & Expert Users

Remove and block a user from Linux server

Hi, Can anyone please guide me how can I remove/block a user from a server access. /usr/sbin/adduser -d /home/john john echo ****** | passwd --stdin john I used the above command to add a user "john". How do I delete and block john. Appreciate your responses. (1 Reply)
Discussion started by: sureshcisco
1 Replies

8. Solaris

Remove Server Sleep Mode

Hi All, Need some help here. Can anyone tell me how to set or which start up script to edit in order not to set the server to sleep mode after a while of inactivity. My Unix server will go to sleep mode and then i always end up with a OK Prompt and have to reset the server. My Server is a V120... (16 Replies)
Discussion started by: alvintai
16 Replies

9. UNIX for Dummies Questions & Answers

Fonts?

NEWBIE HERE...by default, where are the font files located (ttf's) (1 Reply)
Discussion started by: geek01
1 Replies

10. Shell Programming and Scripting

How to transfert special fonts in ksh script

Hello, I have a script in ksh who I make a move from a File who is transfered from a another System. So when I read this file under Unix HP , I cannot read the character ö or Ö . A litlle Example : I must can read Östereich but I read s^tereich Can Anyone help me if there is a Unix... (3 Replies)
Discussion started by: steiner
3 Replies
Login or Register to Ask a Question