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