Search Results

Search: Posts Made By: theninja
3,316
Posted By theninja
Depends on the *NIX version. What OS are you...
Depends on the *NIX version. What OS are you running and what is $INSTALLDIR pointing to itajooba?
3,316
Posted By theninja
Assuming $INSTALLDIR is /bin and you have a open...
Assuming $INSTALLDIR is /bin and you have a open root session, run the same command with 755. After that you can tighten permissions as needed.
2,036
Posted By theninja
I believe your auto.master file should read ...
I believe your auto.master file should read
/nethome /etc/auto.nethome --timeout=300
not
/nethome /etc.auto.nethome --timeout=300
8,686
Posted By theninja
in addition to bipinajith response the...
in addition to bipinajith response

the output from your diff means the fist file in the diff command has a blank line in it that the seconf file does not.


from the diff man page.....
the...
5,999
Posted By theninja
find-pw.dat is a manually created file containing...
find-pw.dat is a manually created file containing every possible spelling of the word.
Not sure what they teach in india, I was taught that many years ago when I started in Unix by an old white guy....
5,999
Posted By theninja
I got this to work, however it takes forever to...
I got this to work, however it takes forever to run. This isn't what it sounds like methyl :)


for i in `cat find-pw.dat`
do
find / -type f -exec grep $i= {} \; >> out.log
done


Thanks...
5,999
Posted By theninja
Search entire system for files containing certain word(s)
I am trying to create a script that will report (email and ftp results) on any file, system wide, that has the word password= in it. (and any variation of password=). Basicaly looking for any plain...
Forum: HP-UX 12-21-2010
4,720
Posted By theninja
A quick read of the man page answered my...
A quick read of the man page answered my question......

0 0 1,15 * 1 command

would run command on the first and fifteenth days of each month, as well as every Monday. To specify days by...
Forum: HP-UX 12-21-2010
4,720
Posted By theninja
[Solved] crontab issue "day of week"
Is there an issue with running a cron entry like the below entries?

0 2 21 12 2 cd /usr/local/bin;./cksecurity.sh -f /home/theninja/security.dat21

I wanted this to run on Tues at 2am, which it...
3,664
Posted By theninja
Doh!, didn't even think about that. I took out...
Doh!, didn't even think about that.
I took out the DST altogether and i works fine.

Thanks methyl
3,664
Posted By theninja
Listing tomorrows date
I am writing a script to strip data from a log, strip last month and empty the log for the comming month. It works great at the moment, but during testing I decided to change the date to 12/31 and...
35,532
Posted By theninja
use the find command to find the file(s) and...
use the find command to find the file(s) and remove them....

find *whci_Access.txt -mtime +10 -exec rm {} \;

this will find all files with the name *whci_Access.txt older than 10 days and...
18,005
Posted By theninja
open the file in vi and get rid of the ^M with...
open the file in vi and get rid of the ^M with the following

:%s/(ctrl-v)(ctrl-m)//g
3,653
Posted By theninja
Let me google that for you...
Let me google that for you (http://lmgtfy.com/?q=suse+manual+ip+config)
3,239
Posted By theninja
not sure if this will help you or not, but this...
not sure if this will help you or not, but this is how I send attachments from unix.........

mail userr@host.com < filename.txt

this doesn't actually send as an attachment, but puts the content...
5,109
Posted By theninja
Thanks for that link Perderabo, zap is what he...
Thanks for that link Perderabo, zap is what he used to say. "zap the file". Now I can stop thinking about it.
5,109
Posted By theninja
What do you call the > thingy in context of the shell?
I can't for the life of me remember what the name is for ">"
My mentor told it to me 20 years ago and I can't remember it now. I know we like to call it re-direct, but there was a name othere than...
5,929
Posted By theninja
I just went through this myself, built a HTPC for...
I just went through this myself, built a HTPC for the living room. nixnoobb hit it, you have to install shh server (sudo apt-get install openssh-server) start it (sudo service ssh start) then enable...
15,313
Posted By theninja
This is what I use to get tomorrrows date.... ...
This is what I use to get tomorrrows date....
TZ=CST-24 date +"%m %d %Y"
109,111
Posted By theninja
I needed to run a script on the last day of the...
I needed to run a script on the last day of the month as well. This is what I use....

#! /bin/ksh
# script to check for tomorrows date, usefull for running
# processes on certain day of the...
32,467
Posted By theninja
After some playing around I came up with this. I...
After some playing around I came up with this. I know this isn't the best solution, but it works.
#!/usr/bin/ksh

export PATH=$PATH:/usr/contrib/bin
export LogDir=$1
export Days=$2
date=$(date...
32,467
Posted By theninja
Log rotation script
I have the below script to help with disk space cleanup that finds logs older than a specified number of days (say 10 days). I need it to grab "active" logs as well. Problem is an "active log" will...
5,247
Posted By theninja
trimm up the decimal places in output
I have a perl script that reports the avg time of a application call and the total number of calls. This works fine, however I would like to trim the number of decimal places reported from 12 to like...
4,550
Posted By theninja
Thanks for the replies, I was able to get it...
Thanks for the replies,

I was able to get it to work with the following...

open OUTER_HANDLE,"userids" or die "$!:$?";
while (<OUTER_HANDLE>) {
@userData = split;
...
4,550
Posted By theninja
split whitespace help
I have a file that I am spliting and parsing, if data starts with an N/n toos it (which works) but I want it to also see if the data is blank and toss it.

What I have does not toss the blank space...
Showing results 1 to 25 of 59

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