[Tip] /dev filling because of malformed IBM script


 
Thread Tools Search this Thread
Operating Systems AIX [Tip] /dev filling because of malformed IBM script
# 1  
Old 09-15-2012
[Tip] /dev filling because of malformed IBM script

There is some IBM script out there, which contains a hidden syntax error. I am not sure which script it is (we are still investigating), but most of my HACMP systems (up to version 6.1) showed the symptom and i suspect the source to be in HACMP. Have a look at your system.

Probably someone at IBM had to change a line similar to

Code:
redir="/dev/null"
command > "$redir"

and thought it would be a good idea to include a redirection of <stderr> too:

Code:
redir="/dev/null 2>&1"
command > "$redir"

What happened now is, that a file called "null 2>&1" is created in "/dev" - and this gets bigger and bigger. "/dev" is in "/" and AIX systems traditionally tend to have fits over full root-fses.

Another thing is a file named "/dev/nulll" (sic! - probably a typo in some script which never surfaced. Hurray for the debugging expertise of the company building the OS we love.) which i also cannot track back to any script.

Since a few days i have a monitoring script in cron, which basically alerts whenever a regular file shows up in "/dev" - regular files have no business being anywhere in "/dev" at all.

Code:
find /dev -type f -print | alerting_script.sh

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 2  
Old 09-17-2012
Quote:
Originally Posted by bakunin
There is some IBM script out there
Update, as we have found the offender: it is the CAS-script in Tivoli.

I hope this helps.

bakunin
These 2 Users Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Tip: template for a safe and portable script

In an attempt to finally end this article I start this new thread. Here is a template for a safe and portable script. #!/bin/bash # /bin/bash exists on most still supported Unixes # # tr and date behave better with if ; then export LC_ALL=C; else export LANG=C; fi # # Unix optional packages... (2 Replies)
Discussion started by: MadeInGermany
2 Replies

2. Shell Programming and Scripting

[bash] script is filling up my /var/log

I am trying to create a script that checks if my VPN connection is up and running... Everything seems to work as except but for some reason, the script fills up my /var/log/auth.log with the below information Dec 13 01:07:44 debian sudo: soichiro : TTY=pts/0 ; PWD=/home/soichiro/Desktop ;... (5 Replies)
Discussion started by: soichiro
5 Replies

3. Shell Programming and Scripting

Malformed session key while using Facebook API

Hi, I am doing some experiments with facebook API and unable to update the status using the API. My code is as follow as: use WWW::Facebook::API; use JSON::Any; my $query=new CGI; my $j = JSON::Any->new; my $api_key="#MY API KEY#"; my $secret="#MY SECRET KEY#"; my $fb =... (1 Reply)
Discussion started by: pandeesh
1 Replies

4. Shell Programming and Scripting

Script filling password from command line

I have this command that i am calling from php (exec()): openssl pkcs12 -export -in cert.pem -inkey key.pem -out cred.p12 and then i need to insert password twice Enter Export Password: Verifying - Enter Export Password: I need script that will fill the password... (3 Replies)
Discussion started by: rockyada
3 Replies

5. Shell Programming and Scripting

Need Suggestions to improve Perl script for checking malformed braces/brackets

Hi all, I've written a Perl script below that check and report for malformed braces. I have a UNIX ksh version and it took a couple of minutes to run on a 10000+ lines. With the Perl version it only took about 20 seconds so that is enough incentive for me to go Perl not to mention that I need... (1 Reply)
Discussion started by: newbie_01
1 Replies

6. Shell Programming and Scripting

Filling out Web Form from Script

I am trying to fill out a web form from within a script I am writing. I think that I should be using curl to do this, but I'm not really sure. The form has username and password fields and a submit button. I want to be able to log in from the command line. Html from the site: <h5... (2 Replies)
Discussion started by: vockleya
2 Replies

7. Solaris

Sendmail 8.13.8 malformed address

Sending email produces malformed address error. The domain name appears as the active directory name which is not a valid Internet domain thus the malfomred address error. I have: divert(0)dnl VERSIONID(`@(#)sendmail.mc 1.11 (Sun) 06/21/04') OSTYPE(`solaris8')dnl... (0 Replies)
Discussion started by: crowman
0 Replies

8. Web Development

Tool Tip on a Perl CGI script

Hi, I am writing a perl script using Perl CGI. There are various HTML tables and forms involved in this. Now I wanted to add a tool tip to the elements here but I am not able to find documentation on how to do it. Can anyone help? Thanks in advance. Regards, garric (5 Replies)
Discussion started by: garric
5 Replies

9. Shell Programming and Scripting

simple script to alert of archive logs filling

Hi all. I am not a DBA. But I do have responsibility for making sure the archive logs dont fill up and cause the database. This happend the other day while I was absent (sick) and I got a good ticking off for it. Needless to say I dont want this happen! Could anyone lend a hand to a... (8 Replies)
Discussion started by: Incremental
8 Replies

10. Solaris

What is /dev/tty /dev/null and /dev/console

Hi, Anyone can help My solaris 8 system has the following /dev/null , /dev/tty and /dev/console All permission are lrwxrwxrwx Can this be change to a non-world write ?? any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies
Login or Register to Ask a Question