LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 05-31-2006, 12:15 PM   #1
ylikone
Member
 
Registered: Dec 2004
Location: Ontario, Canada
Distribution: ArchLinux, VectorLinux, Ubuntu, Debian, Linspire
Posts: 66

Rep: Reputation: 15
BASH script for starting printer


I have a friend who has a problem with their printer constantly going into the "Stopped" state for no apparent reason (they are running Linpsire Linux). Every time they want to use the printer, they need to go to the KDE Control Center and select Peripherals->Printers->Printer->Start/Stop->Start Printer which is really annoying. Is there any way I can setup a desktop icon (hooked to a bash command) for them which will reset or "Start" the printer? It's a cheap hack fix, I know... but I can't figure out why it is constantly reverting to "Stopped" state so this is my solution until I can find them a better one. (and no, dumping Linspire is not an option at this point)
 
Old 05-31-2006, 04:33 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Did you look at the logs to see why it's stopping? You could write a bash (or whatever shell you desire) script to restart cups daemon. I believe that will work for you.

-twantrd
 
Old 06-01-2006, 05:56 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,314

Rep: Reputation: 175Reputation: 175
cups has a webservice accessible by a browser
localhost: port

can't remember the port number.
google cups
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 07:39 PM
Bash backup script - If multiple files starting with a exist problem demoncheese Programming 2 07-29-2004 11:47 PM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 01:20 AM
Starting a service in a bash script AMMullan Programming 3 02-19-2004 12:06 PM
bash script prob: how can i tell the script that a 'dd' has finished? Frustin Linux - General 2 04-02-2003 06:34 AM


All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration