Search Results

Search: Posts Made By: dellanicholson
960
Posted By MadeInGermany
Please cd to the root of your directory structure...
Please cd to the root of your directory structure and run
find . -type d -print
Also list the existing symlinks
find . -type l -exec ls -l {} \;
So we get a clear picture.
Then please say at...
3,725
Posted By bakunin
As it is, i suppose there isn't: #...
As it is, i suppose there isn't:



# uname -a
AIX myhostname 1 7 00F7CA254C00

# oslevel -s
7100-03-04-1441

# which column
no column in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11...
3,725
Posted By RudiC
Is the column command available at all on your...
Is the column command available at all on your system?
3,725
Posted By Don Cragun
The 3rd line in your script: fpath=....
The 3rd line in your script:
fpath=. /sas/scripts/OPTUMize/output/disk_utilization/
sets the variable fpath to the string . and places it in the environment of the command it will then try to...
3,725
Posted By bakunin
Yes. I will point out the most obvious ones,...
Yes.

I will point out the most obvious ones, but i wouldn't bet on having found all of them. The script is in a state which begs a rewrite anyway.

#!/bin/bash
You mentioned using AIX. The...
3,725
Posted By Scrutinizer
This: 2>&1 1>&3)| { is opening a code block...
This:
2>&1 1>&3)| {
is opening a code block and there is no closing brace.

At the start of this block these variables are initialised through read statements from stdin that is piped ( | ) into...
8,326
Posted By Don Cragun
This thread appears to be a duplicate of a...
This thread appears to be a duplicate of a portion of the thread Find keywords in multiple log files...
4,850
Posted By Don Cragun
Maybe you should consider the questions I asked...
Maybe you should consider the questions I asked and the comments RudiC made as suggestions for things to change in your code to make it work correctly and avoid the problems you are having. If you...
4,850
Posted By Don Cragun
So what are the symptoms of your problem? ...
So what are the symptoms of your problem?

Are you getting syntax errors for an incomplete awk program?

Are you getting failures from cd for trying to change directory to a list of four regular...
1,436
Posted By Chubler_XL
You could do most of the heavy lifting using awk:...
You could do most of the heavy lifting using awk:

cd /tmp/log
awk -F '[=:;.]' '
function pr() {if(NR>1) printf "%s\t%s\t%s\t%s\n", K[1],K[2],K[3],K[0]}
BEGIN {
printf...
1,436
Posted By Chubler_XL
Try v=$2;gsub("^[/ ]*","",v);gsub(/...
Try v=$2;gsub("^[/ ]*","",v);gsub(/ *$/,"",v);K[L[$1]]=v
1,436
Posted By Don Cragun
I'm trying to figure out what some of your code...
I'm trying to figure out what some of your code is trying to do. Can you please answer the following questions:

1. Will the user running this script have read access to files matching the...
1,662
Posted By rdrtx1
try: #!/usr/bin/perl use Cwd(realpath); ...
try:
#!/usr/bin/perl

use Cwd(realpath);

my $filename = "/tmp/odbc.ini.2014_old";
my $find=' sql7.0.1 ';
my $replace = ' sqls715 ';
{
local @ARGV =($filename);
local $^I ='.bac';
...
1,662
Posted By rdrtx1
Is $filename name /tmp/odbc.ini.2014_old or...
Is $filename name /tmp/odbc.ini.2014_old or /tmp/odbc.ini_old?

The code shown above will remove the line matching the string. For replacing string try updating to:
#!/usr/bin/perl

use strict;...
3,123
Posted By Peasant
Looks like you copied the script from Linux to...
Looks like you copied the script from Linux to some other operating system, and your date command used is not the same as on previous operating system.

Either you will need to install the GNU date...
2,359
Posted By Corona688
sudo does not work that way. Put sudo...
sudo does not work that way.

Put sudo directives in sudoers. You will need administrator access to do so.
Forum: AIX 09-27-2015
5,350
Posted By bakunin
In general this is a very bad idea. First,...
In general this is a very bad idea. First, processes might be runningg for a long time because they need to run for such a long time. If you kill the db-writer process of a DB it will not help the DB...
Forum: AIX 09-26-2015
5,350
Posted By Don Cragun
Making several wild guesses based on statements...
Making several wild guesses based on statements in earlier posts, try:
#!/bin/bash
PIDkill=0 # # of processes successfully killed.
PlogFile="/path/to/pidkill.txt # File to receive log entries....
Forum: AIX 09-26-2015
5,350
Posted By Don Cragun
What shell are you using? There is no reason...
What shell are you using?

There is no reason to export a variable that you are not passing to another shell execution environment.

There is no reason to make a file that does not contain any...
5,461
Posted By RudiC
Why don't you run it giving the entire path of...
Why don't you run it giving the entire path of the command in the script:/path/Lev1/sas.server start?
And, I guess "start" is a string constant passed as a parameter; don't expand it with a $ ...
5,461
Posted By Don Cragun
The variable PATH has a very special meaning to...
The variable PATH has a very special meaning to the SHELL, never set it to some random string. It needs to the a colon separated list of the utilities that will be used in your script. Normally, it...
Showing results 1 to 21 of 21

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