Search Results

Search: Posts Made By: kodak
1,903
Posted By kodak
We have an admin that smoked permissions on an...
We have an admin that smoked permissions on an entire NFS share by "just trying things" with chmod (it involved doing a chmod -R .* for the curious. D'oh. (For any newbies: don't do operations on...
3,020
Posted By kodak
This makes absolutely no sense whatsoever.
This makes absolutely no sense whatsoever.
2,329
Posted By kodak
10 PRINT "I WILL READ THE SITE GUIDELINES" 20...
10 PRINT "I WILL READ THE SITE GUIDELINES"
20 GOTO 10

HTH
1,559
Posted By kodak
You want to investigate the -u option for rsync,...
You want to investigate the -u option for rsync, it sounds like what you're looking for.
4,849
Posted By kodak
The environment in cron isn't the same as your...
The environment in cron isn't the same as your interactive environment. The error tells you as much: the variable AUTOSYS is not set (and probably others.) You will have to import the required...
1,658
Posted By kodak
It's good form to include your solutions so that...
It's good form to include your solutions so that others may learn from your examples.
2,766
Posted By kodak
In AIX you can use the "mkuser" command. If you...
In AIX you can use the "mkuser" command. If you have a simple list of users in a text file, one username per line, this is as trivial as a for loop.

Something like:

for user in `cat...
1,658
Posted By kodak
This smells a lot like a homework question. ...
This smells a lot like a homework question.

Regardless, this is pretty vague. Pico is simply a text editor, it doesn't run programs. What code have you already written? What language? I...
1,255
Posted By kodak
Are you sure it's a solaris version thing and not...
Are you sure it's a solaris version thing and not a default shell thing? echo $SHELL on both boxes and see if you're using the same shell. Alternately, use a shebang to specify the shell.
17,160
Posted By kodak
Double quotes.
Double quotes.
1,708
Posted By kodak
That depends on what OS you're using. Sounds...
That depends on what OS you're using.

Sounds like you're collecting performance data, might I suggest you take a look at munin?

Munin - Trac (http://munin.projects.linpro.no/)
Forum: Red Hat 03-03-2010
2,976
Posted By kodak
Did you restart apache after you installed php?
Did you restart apache after you installed php?
11,523
Posted By kodak
Your script environment isn't the same as your...
Your script environment isn't the same as your interactive environment.

One thing I see is that you probably use csh or tcsh as your interactive shell. Stop doing that, it will melt your brain.
...
3,718
Posted By kodak
If these logs are syslog controlled, you can send...
If these logs are syslog controlled, you can send them to a central machine for processing.
2,050
Posted By kodak
Without reading the code very much, I noticed you...
Without reading the code very much, I noticed you have a whole bunch of if/then statements operating on a single variable: probably a better choice would be to use a switch/case operator.
22,483
Posted By kodak
You can kind of kludge it with bash. In lieu of...
You can kind of kludge it with bash. In lieu of explaining it, see this page where someone already did:

“Multithreading” with Bash script Daniel Botelho...
5,660
Posted By kodak
Try: #!/usr/bin/perl use warnings; ...
Try:


#!/usr/bin/perl
use warnings;
use strict;

open (LOG,"<","status.dat") or die "I couldn't get at status.dat: $!";

while (<LOG>) {
chomp ($_);
if ($_ =~...
38,474
Posted By kodak
if ( -e filename) then echo empty endif ...
if ( -e filename) then
echo empty
endif


Also, stop using csh:

Stop Using (and Teaching) C-Shell and Tcsh (http://www.shlomifish.org/open-source/anti/csh/)
1,594
Posted By kodak
How do I send email? - The UNIX and Linux Forums...
How do I send email? - The UNIX and Linux Forums (https://www.unix.com/how-do-i-send-email/)
11,075
Posted By kodak
Look into procmail. It's a big subject, be...
Look into procmail. It's a big subject, be prepared to read quite a bit, but it's certainly possible to do what you want with it.
36,154
Posted By kodak
If it's always going to return those messages,...
If it's always going to return those messages, just look for "connected" or "failed" and take action appropriately.


host='172.18.242.32:7001'
result=`wget $host | head -1`

if (echo $result |...
1,973
Posted By kodak
One way to do it: Each step would be a...
One way to do it:

Each step would be a function. Then you have a main loop that counts which step you're at. If the user enters "b" it will subtract 1 from the counter and then call the function...
3,041
Posted By kodak
The hash %ENV contains your current environment. ...
The hash %ENV contains your current environment.

You can step through each one by doing:

#!/usr/bin/perl
foreach $key (sort keys %ENV) {
print "$key: $ENV{$key} \n";
}

Or access a...
1,417
Posted By kodak
try: :set ff=unix
try:

:set ff=unix
10,412
Posted By kodak
I haven't traced through this, but if this is a...
I haven't traced through this, but if this is a copy and paste:

fun_close_wait 11.11.111.11 22.22.222.22 server1 server2 first-port-list-file
fun_close_wait 33.33.333.33 44.44.444.44 server 3...
Showing results 1 to 25 of 67

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