Results 1 to 3 of 3

Thread: How do I run partial code from a new terminal?

  1. #1
    Join Date
    Aug 2005
    Beans
    47

    How do I run partial code from a new terminal?

    I'm not used with shell scripting... The thing I want to do is really simple, just start gxine and then change the contrast value, something like this;
    Code:
    #!/usr/bin/bash
    # Name: movie.sh 
    
    gxine &
    
    xvattr -a XV_CONTRAST -v 64
    The reason I want to do this is due to a bug with the intel 855gm graphics card, the value changes from 64 to 128 for som reason when gxine or totems is started.
    The problem with script is that the xvattr command runs before gxine changes the value to 128. So, maybe a pause command or something is suitable, or a new terminal with the other command.

  2. #2
    Join Date
    Feb 2005
    Location
    Holland
    Beans
    111

    Re: How do I run partial code from a new terminal?

    How about this?

    Code:
    #!/bin/sh
    # Name: movie.sh 
    
    gxine &
    
    sleep 5
    
    xvattr -a XV_CONTRAST -v 64

  3. #3
    Join Date
    Aug 2005
    Beans
    47

    Re: How do I run partial code from a new terminal?

    works great! thanx

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •