Find the answer to your Linux question:
Results 1 to 4 of 4
I am really not sure where to put this post, so I decided this would be the closest forum I think for my question. What I want to do is ...
  1. #1
    Just Joined!
    Join Date
    Aug 2008
    Posts
    48

    [SOLVED] gnome-terminal+cal+want to create a panel launcher

    I am really not sure where to put this post, so I decided this would be the closest forum I think for my question.

    What I want to do is create a launcher on my panel to pop up showing the calendar in the terminal.

    I currently have the launcher:

    Type: Application
    Name: Calendar
    Command:gnome-terminal cal

    I also did it with:
    Type: Application in Terminal
    Name: Calendar
    Command: cal


    With both, when I click it, it runs fast and then closes. Is there a command or something I can add to the command line that will keep the calendar open indefinitely or for a certain amount of time?

    And will that work for other things I want to run in the terminal?

  2. #2
    Just Joined!
    Join Date
    Aug 2008
    Posts
    48
    Is there a Bash script I could use instead?

  3. #3
    Just Joined!
    Join Date
    Aug 2008
    Posts
    48
    Well I found this, so I know I can do this. I just have to figure out what to change/add to this.

    Code:
    gnome-terminal -x sh -c "cal -y|less"

  4. #4
    Just Joined!
    Join Date
    Aug 2008
    Posts
    48
    Got it, finally. Prints out one month and closes the terminal in ten seconds.


    Code:
    gnome-terminal -x sh -c "cal; sleep 10"

Posting Permissions

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