Hi, I built 2 arrays they are:
@virtuals and @physical
Each array will have 2-5 elememts in them.
What I'm trying to do is, for each element in the array create 2 variables. The first variable will be the element and the second variable will be all the other elements in both the @physicals and...
I want to send a bunch of line to an output file - my script is creating a configuration file. I want to do something like this but not sure how..
outputfile.config<
text of file
lines of configs
yada yada yada
>>EOF
I have a startup script linked from /etc/init.d to /etc/rc3.d. When the system boots root starts the script and owns the processes. How can I have the script started as a different user?
Thanks.
I'm trying to find a directory path in a file and can only get it to work with 3 back slashes.
sample file:
this is a sample file line
here is C:\directory\match
another line
script to find the directory path named in the file:
$path = "C:\\\directory\\\match";
open IN, "samplefile" or die...
I just installed apache on RH 2.4.
I pointed my browser at the url and I get a pop up. I thought maybe it was my PC but I'm using a different computer now and again I get the same pop up.
How can I identify if this popup is being initiated from my linux apache webserver?
link is...
Hi,
I'm trying to use a variable to initialize a new variable in a for loop. Is this possible? If not any other way in ksh to do this?
for x in main1 main2
do
${x}string1=$(grep string1 file1 | wc -l)
${x}string2=$(grep string2 file1 | wc -l)
done
The variables I was hoping to define are as...
I'm trying to convert a number string without commas to have commas so it can be read easily (in Korn/Posix). Sorry, I'm Perl dumb.
For example;
123456789.15 I want to look like this 123,456,789.15
Thanks!
Hi,
I'm trying to spearate the output of the diff command between each result of the command with a new line but can't figure out how..
Here's a sample output from diff:
$ diff file1 file2
2d1
< ABCDEFG 12343
4c3
< ABCDEFG 12345
---
> ABCDEFG 1234x
7a7
> ABCDEFG 12341
I want to pipe it to...
I'm trying to create a memory filesystem where I can keep some frequently accessed files.
I can't figure out how to create a file system in memory.
Can someone give me the command to create a fs in memory?
Thanks!
Hello,
I am writing a simple AIX korn shell script. The script executes when the user logs on to the system, preventing them from shell access. The script is in their /etc/passwd entry.
Here's the problem:
The script is a menu for operations to check out the server and application. One of the...
Hello,
I am trying to find out what the IO percentage/amount is being performed on a logical volume. Something similar to iostat but not for the physical disk. For example, I have a pv hdisk10 with lv's lv22 and lv23 residing on hdisk10. I want to know how much i/o is being performed on lv22...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.