Author Topic: Q: Queue It Up, Quickly And Quietly  (Read 5790 times)

Armagon

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • http://
Q: Queue It Up, Quickly And Quietly
« on: April 05, 2007, 10:46:41 am »
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: [Select]
#!/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: [Select]
cp q.txt /usr/bin/q
chmod +x /usr/bin/q


Cheers,
Armagon
Sharp Zaurus SL-C1000 -- 2 GB SD Card -- Zippy Slim Mini Keyboard -- Loving pdaXii13!

scheck.r

  • Sr. Member
  • ****
  • Posts: 320
    • View Profile
    • http://
Q: Queue It Up, Quickly And Quietly
« Reply #1 on: April 05, 2007, 05:42:48 pm »
Very handy, thanks a bunch !!!
SL-C1000 from PriceJapan(cheap and very fast shipping) with EA-70 power adapter, iRiver USB Host cable, PDAIR case, pentopia stylus, ultra clear screen-protector from shop.brando.com.hk only $3 for shipping worldwide
4GB Hitachi Microdrive, 1GB Kingston Elite Pro CF, 4GB Transcend 150x SD, Symbol Spectrum 4137 CF WiFi(low power)
PdaXrom pdaxii13 5.4.9 updated with Kkazakov13's feed. I owned a SL-6000L before