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!

Recent content by blx

  1. blx

    Help needed to extract character position

    Hi All, An easy one for those in the know !! I have hostnames of machines in my environment that can be displayed as either: NTSNRTWK006 YSWWKFDS01 I want to be able to extract only machines that have WK as the 7th and 8th characters, and output them to a file. Any ideas? Thanks in Advance Blx
  2. blx

    Help with While loop

    Hi all, I have a file containing a list of servers. I want to start a service on each of these servers at 15 minute intervals - e.g. start service on server1, sleep for 15 minutes, start service on server2 sleep for 15 mins etc, until the whole list of servers has had the service started on...
  3. blx

    vi help

    I want to be able to view control characters in vi. When I run a script created in vi, I get the following message "Bad Interpreter". I believe that it is because it has ^M character in the script at the end of each line, (however I would like to see which control characters appear in...
  4. blx

    Ignoring the hash symbol

    sorry, here's a portion: for resources in `cat $list_dir/$Administrator` do wln $resources /Administrators/$Administrator done The script calls this file: @RemoteControl:RC.ADMINS.DESKTOPS # List the collections here /Library/imp_TMF_TGC::CollectionGUI helpdesk_tasks The line in Green is...
  5. blx

    Ignoring the hash symbol

    Hi All, I wonder if someone can help. I've created a script that takes its input from a separate file. The contents of the file are read line-by-line, and each line must be exactly as it appears. I would like to add some comments to this file but want the script to ignore anything with a #...
  6. blx

    All installed products

    Hi All, I want to be able to list all the products and patches installed for a single specified host from the command line. I have tried the various options of the wlsinst command, and can't seem to find a way to do it. Any ideas/suggestions? Thanks in Advance blx
  7. blx

    Creating directories remotely

    Sorry, but in my environment rsh is not supported. How would I do this from a script?
  8. blx

    Creating directories remotely

    Hi All, Is there a way that I can create a directory on a remote machine from a bash command? Thanks in Advance
  9. blx

    Remote Control 3.8 Install - Disk Clone

    Hi All, I want to be able to install the Remote Control 3.8 binaries as part of a disk clone process. The reason for this is that I have a large number of laptops that only dial in that are in the process of being rebuilt, and I don't want the binaries to be downloaded when they first become...
  10. blx

    $root_user

    Pritesh, If I understand this correctly, your tivprod account is a member of the Domain Admins group? BuiltinNTAdministrator is a pseudonym, it isn't a real account name. This allows you the flexibility to rename the Administrator account to anything you want it to be. It also allows you have a...
  11. blx

    Moving and Renaming a file

    Sorry guys, still no joy. The mv command works, but the problem seems to be when I try to add the date to the end of it. Any other suggestions
  12. blx

    Moving and Renaming a file

    Hi Attached is a small script that's driving me mad!! I want to compress a file (using gzip - which I have done), I then want to rename the file using the mv command but add the date and time to the filename from the variables I've declared at the top of the script. Is there an easy way that I...
  13. blx

    AWK program - Help Needed

    Hi All, I have the following line: 1944512883.1.347#TMF_ManagedNode::Managed_Node# I want to use AWK to extract 1944512883.1 only and then discard everything else after the '1'. I'd be really grateful if someone could show me how or tell me if this can be done. Thanks VM in advance.
  14. blx

    Manipulating File size

    Hi all, I need to write a small shell script that will do the following: 1. Do a listing of a certain file in a specific directory. 2. Look at the size of the file, reduce the size of it and then set a limit on the size so that it doesn't exceed a the size that I set. Is this doable?? Thanks...
  15. blx

    Addming Company Logos to the Tivoli Desktop

    Hi All, I'm trying to add my Company logo onto the Tivoli desktop. I've read on the orb-data site about the way to do it, but the example they use has a .xpm file as the input. Does my gif file have to be converted to a .xpm file first or can I simply use "mylogo.gif" as an input...

Part and Inventory Search

Back
Top