OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Q: Queue It Up, Quickly And Quietly, Handy script for starting X apps
Armagon
post Apr 5 2007, 06:46 AM
Post #1





Group: Members
Posts: 106
Joined: 19-October 05
From: Cardston, AB, Canada
Member No.: 8,348



Greetings.

Here is a handy script that I wrote to make it convenient to start X applications from a terminal, which is really handy on the Zaurus, as well as being useful on a normal PC running X windows.

The script is as follows, and is attached:

CODE
#!/bin/sh
#
# Queue it up, quickly and quietly
#
# Runs a program in the background and suppresses all output.
# Particularly useful for starting X applications from
# a terminal.
#
# Useage: q some-application some parameters
#     ex: q dillo myfile.html
#
# Written by Armagon, 2007-04-05
#
# You are welcome to use this however you see fit.

$* > /dev/null 2>&1 &


After downloading the attachment, you will want to install it (as root):
CODE
cp q.txt /usr/bin/q
chmod +x /usr/bin/q



Cheers,
Armagon
Attached File(s)
Attached File  q.txt ( 369bytes ) Number of downloads: 25
 
Go to the top of the page
 
+Quote Post
scheck.r
post Apr 5 2007, 01:42 PM
Post #2





Group: Members
Posts: 320
Joined: 5-December 04
From: Paris, France
Member No.: 5,776



Very handy, thanks a bunch !!!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 30th September 2014 - 08:01 PM