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 TouchToneTommy 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: alan147
  • Content: Threads
  • Order by date
  1. alan147

    udev rules question

    I have 2 identical Linux hosts attached to an HP MSA. I am using udev to create persistent names for an Oracle database. I have a problem where one host maps all of the devices correctly the other host maps all except one device which it ignores. The server maps the scsi device but udev will not...
  2. alan147

    Compare numbers

    Good afternoon Is there a way to compare two numbers such that if the two are within 5 of each other the result is true but if the difference is greater the 6 then the result is false? Thanks Alan
  3. alan147

    Expect script help

    I have an expect script that uses sftp to download files from a remote windows host. I gave just moved this to a new server RHEL 6.1 and cannot get the script to work. I can manually sftp to the remote host and list the directory tree. The expect script produces the following error...
  4. alan147

    Dynamically name a bash array

    Hello I wrote a script that reads the file names in a directory and puts them in to one of two arrays based on part of the filename which is a mailbox ID. For example: INSURER1_SEND_ARRAY=(`ls -al | awk '/^-/' | awk '{print $9}' | grep ABCD |cut -f1 -d.`) INSURER2_SEND_ARRAY=(`ls -al | awk...
  5. alan147

    Cant see file on shared storage

    Hello I just set up some shared storage on a Netapp filer and connected two rhel 5 servers to it using iscsi. The storage has been partitioned and then mounted on both servers. Howerver when I write a file to the shared storage on one server I cannot see it on the other server. Any ideas what I...
  6. alan147

    Increase disk space

    Hi I have a server which is running ou of disk space, it had a pair of mirrored 72Gb discs that have been replaced one at a time to allow the mirror to rebuid. The OS doesn't recognise that the disc space has increased, is there a way that I can use this space? Thanks Alan
  7. alan147

    Samba problem

    Good afternoon I have a problem with a samba share to a windows server, it mounts successfully but when I do a df -h on / I get df: `/print_archive': Permission denied ls -al on / shows ?--------- ? ? ? ? ? print_archive The same windows share is accessible...
  8. alan147

    Data matching

    Good afternoon I urgently need to select data from one file where the entry in field 1 matches the data in field 1 of a second file does anyone have a solution? Thanks Alan
  9. alan147

    Data selection

    Good evening I need to extract some data from a file, each entry comprises three rows of data and I need to be able to select fields from each of the three rows. The 4th field in each of the three rows has a different three character code. The fields are comma seperated. The file looks similar...
  10. alan147

    YUM doesn't update some packages

    Good afternoon I am using YUM to update my servers from a local repository. Everything seemed to have been working as I expected it to until I checked the version of some oracle asm packages. Although the packages in the repository are newer than those installed on the servers YUM does not...
  11. alan147

    Samba question

    Good morning I have a number of samba shares set up on a linux server, all are accesible from windows boxes. I have just added another share which is identical to the others but I can't browse to it from windows boxes. testparm shows that it is shared out. Any clues about what is doing wrong...
  12. alan147

    Windows file and directory names with spaces

    Good morning I have a script that logs in to an FTP server and downloads any new files, generally this works well. Unfortunately the FTP server is on a windows box and occasionally when the files and directories are uploaded there are spaces in the names. This will mess up my script. Does...
  13. alan147

    expect help

    Good afternoon I need a bit of help with an expect script. I have written a script that gets a list of files on an FTP server, it then downloads them. The actual FTP is controlled using an expect script ( shown below ) !/usr/bin/expect -f set env(TERM) vt100 spawn /usr/bin/sftp -b {path to...
  14. alan147

    Synchronise files

    Good afternoon I have a file that is changing continuously during business hours. I would like to be able, at regular intervals during the day, synchronise the live files to a backup copy on another server. Is this possible with rsync or are there better tools available? Thanks Alan
  15. alan147

    SED Help

    Good morning I have a file that is used as the input to expect, it contains commands to sftp files from a remote server and a list of files to get. I would like to check the input file against a list of previously downloaded files so that any that we have already downloaded are removed from...
  16. alan147

    Expect question

    Good afternoon I am trying to use expect to interact with an ftp site, but I need to be able to pass a parameter to the expect script. If I don't set the shell the $1 variable is not recognised, if I set the shell expect fails. Any ideas. Thanks, Alan
  17. alan147

    Excel cell format help

    Good afternoon I have some disc space data that is a mixture of GB and MB for example 5.9 GB and 250 MB, is there a way to: 1. convert all of the data to GB ie the 250 MB would become 0.25 GB 2. Remove the text, MB and GB Thanks Alan
  18. alan147

    Outlook Form Checkbox

    Good evening I am tryingh to create an outlook form that has a number of check boxes on to dispaly the status of certain devices, the checkboxes are selected manually. When I use the form to report on the status if these devices the check box does not keep the tick. What am I doing wrong...
  19. alan147

    Monitor Invalid Logon attempts

    Good afternoon Is it possible to monitor invalid logon attempts in AIX 4.3. Thanks Alan
  20. alan147

    Insert character after 510 characters

    Good morning A script that I have been provided with has created a 700M output file that is effectively 1 long line of text. Is there a way to insert a delimeter after 510 characters so that the file is a bit more user friendly? Thanks Alan

Part and Inventory Search

Back
Top