Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: denisl
  • Content: Threads
  • Order by date
  1. denisl

    array or hash output

    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...
  2. denisl

    Send text to output file

    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
  3. denisl

    Writing to console and a file handle

    How can I have a print command send output to a file handle for logging and to the console?
  4. denisl

    startup script as non-root user

    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.
  5. denisl

    Windows backslash and regular expression

    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...
  6. denisl

    pop-up on fresh apache server install

    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...
  7. denisl

    Variable used to set a variable

    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...
  8. denisl

    How to ADD commas to a number string

    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!
  9. denisl

    New Line to this output

    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...
  10. denisl

    Memory file system

    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!
  11. denisl

    Not killing a parent process

    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...
  12. denisl

    I/O stats on a Logical Volume

    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...
  13. denisl

    grep -p --- is there an equivalent??

    Does anyone what command/script could be used to achieve the same as AIX's grep -p for use on other unix systems like HP-UX or Solaris? Thanks, Denis

Part and Inventory Search

Back
Top