General :: How To Stop Bash From Printing Alerts
Feb 17, 2010When killing a process with kill -9 $PID &>/dev/null in a script, a message is still printed to the terminal after the next command terminates.
View 3 RepliesWhen killing a process with kill -9 $PID &>/dev/null in a script, a message is still printed to the terminal after the next command terminates.
View 3 RepliesWe developed qt based application in linux. I wish to stop ejecting the paper after printing over.How to do it.
View 2 Replies View RelatedI have developed an application in Qt.I want to print my text(for e.g "hello") using Qprinter and stop the printer.The text printer but i dont want form feeding after printing.
View 1 Replies View RelatedI would like to know how do I print the line # in a script. My requirement is, I have a script which is about ~5000 lines long. If there are any errors happen I just exit. And I would like to add the line # of the script where the error happened.
View 3 Replies View Relatedi would like to ask something very simple i hope for most off you but i couldn't find anything in other questions so specific...
So...i need a command to stop another command.
more specific i have to run airodump-ng and i want this command to stop after some seconds (or minutes) automatically....
Is there a way to catch or stop a Linux shut down after a reboot, halt or shutdown command has been entered?sudo shutdown -r +10 I should now have 10 minutes before the computer shuts down. If I change my mind and decide that I still want to continue running, how could I stop the shut down?
View 1 Replies View RelatedHow do I stop a printer from printing? Here's what happened- I started to print some PDF stuff and then changed my mind. The printing job hadn't finished so I just clicked on the printer icon and selected QUIT. Well, of course that didn't work so I just turned the printer off......same result- when I turn the printer back on it keeps on printing the same stuff. How do I stop the printer from continuing and delete all print jobs?
View 2 Replies View RelatedI have a HP printer connected to Ubuntu 10.04. Just recently I noticed that when I print something it also prints a cover page with some info about print job. Does anyone know how to stop printing the cover page? This is a serious waste of paper.
View 1 Replies View RelatedIs there anyway to get evolution to not automatically print email attachments?
View 2 Replies View RelatedEvery now and then on my non-graphical console-orientated Debian Squeeze system, some services see it fit to spill their juices all over what I am doing.
A message about a service stopping/starting/restarting prints at the location of my cursor ontop of whatever I was doing at that moment, forcing me to either redraw ( if the currently running application supports it ), background and then foreground what I'm doing or clear the screen if at the shell.
Code:
* Restarting OpenBSD Secure Shell server sshd
* Restarting advanced system logger rsyslogd
How can I stop these messages appearing? Even better would be to send them to /dev/tty8 where I've configured rsyslogd to write.
I am supposed to take some small files, and print them to a specific printer, such that the small files are concatenated into one file. The file name has to be included in the file that gets printed.
Should I be looking to concatenate the files into one file with the file names included, and then print them?
something like: -printfunction -printername < file*
Mandriva-2009.1 tries to install a package called Task-Printing-Server every time I power up my PSC-1401 All-In-One (multifunction) printer. This is very annoying & I want to stop these pop-up messages.This printer uses the hplip package (PSC_1400.ppd for printing & hpaio for scanning) & everything works fine except for those annoying pop-up messages.
View 2 Replies View RelatedI have an EPSON RX620, it works just fine in Ubuntu and I can redirect text to "lp" and it also prints just fine, but in black only.Are there any utilities I can use to print text in different colours from a bash script?Do I need to insert escape characters or pipe through another program?
View 9 Replies View RelatedI would like to know how do I print the line # in a script. My requirement is, I have a script which is about ~5000 lines long. If there are any errors happen I just exit. And I would like to add the line # of the script where the error happened.
View 2 Replies View RelatedI have 3 script BASH. I want start this script when the system start,stop and reeboot.
View 4 Replies View RelatedSometimes the website will show an alert box akin to "Are you sure you want to leave?" when you try to leave the site. Is it possible to disable this from happening, without using something like the NoScript extension?
View 3 Replies View RelatedI have installed nagios in centos and its working fine.
I need to configure email alerts for nagios.
I have already configured nagios to send email alerts for warning,critical and recovery for 24/7.
1) i need to configure nagios to send email alerts twice a day
a) morning at 8am
b) evening at 6pm
2)i need nagios to send email alerts only "current status" of the host and services twice a day (morning and evening).
I have Ubuntu 10.04 and MegaRAID controller. The only tool I have is the notorious MegaCli. I need to be emailed when some disk has failed in the RAID array. How to set that up?
View 3 Replies View RelatedI'm trying to set up a tool that emails me periodically (in my case, psad). It allows by default to define just a destination email for reports. Is there a general way to get this or similar tools to use a non-default SMTP server, with TLS? (e.g. gmail's SMTP)
View 1 Replies View RelatedHow do I get this loop to stop on each increment? This script does work but I would like it to stop at each increment, remember what the value of $n is, then continue until it gets to 7. I have worked so hard on this. My brain is hurting now.
[Code]...
I have the following code in bash script:
Code:
#!/bin/bash
COUNT=1
# bash until loop
until [$COUNT -gt 2]; do
pq A$COUNT [Pemptus].pq &
let COUNT=COUNT+1
done
I did this because I'm that much of a Progress Quest geek that I wanted to have a huge group on the online server, so I decided to make a script that would open all the files for me rather than having me do it manually. I created some characters with the boring name of A1, A2, etc. When I ran the above script, it went into a continuous loop and I had to halt it, then run sudo killall pq.exe to eliminate the 500 or so Progress Quest windows that popped open. Anyway, what is wrong with my script that I can't seem to get it to stop loading files at an arbitrary number? I want to get this part finished before I make any more boring named characters.
whats the difference between restarting/stopping apache using 'service httpd restart/stop' and apachectl restart/stop. I know that using 'service httpd restart' is actually a script in /etc/init.d/httpd but what about apachectl?
View 1 Replies View RelatedI expected more from ubuntu 10.4 with regards to printing with exact size photos and with poor auto colour printing but the situation remains unchanged! for instance .. the photo size configurations for ubuntu/fspot/gimp and others are not compatible with my printers (HP and Brother) .. here in Europe a typical standard size photo (10x15inches or 150x100mm are not even on the Ubuntu listing? I have tried all listed possibilities including "custom" (which does not seem to ever work correctly?)and the result at best is photos with uneven boarders or at worse my printer goes a bit crazy with much wasted photo paper and expensive ink ...even photos selected for "no boarders" still produces photos with the self same uneven boarders.
I have tried pretty much everything over time following advice in this forum and including using HPlip and updating drivers required for my Brother printer but the root problem seemingly lies with the Ubunto photo size setup listing. Working with Ubuntu over the years I have found that it can do pretty much everything that Windows can do except for this dam ongoing photo quality and configuration problem.
I create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:
Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END
[code]...
below are the details of my system. I have bash as my current shell, some really common commands aren't working.
Do I need to do a re-installation of bash? Or how do I install a selection of bash commands which I need? (for example a subset of [URL])
Code:
root@sdptfw:~ # uname -a
Linux sdptfw.sdpt.co.za 2.4.36 #1 Tue Jul 22 13:13:24 GMT 2008 i686 i686 i386 GNU/Linux
root@sdptfw:~ # echo $SHELL$
/bin/bash$
[Code]....
How can recive nagios alerts via SMS,via SMS gateway XML API.
I have a sms gateway xml api & had writte a script in perl
NAGIOS SETUP
Can I have to install gateway module
I'm relatively new to ubuntu and linux and for convenience I choose to surrender to the "ME" set-up by ubuntu, when it comes to using Empathy over my preferred Pidgin (I still use Thunderbird though without integration). The thing that annoys me is that the alert sounds, when I get chat massages and so on, are really low! Lot's of times I missed chats from friends because I didn't hear them. I've looked on the internet and I've tried different sound settings in the main preferences, but nothing. How to turn up the alert volume for Empathy?
View 1 Replies View RelatedHow to get weather alerts with conky.
I'm using the following bit of code:
This (correctly) display a message to the effect "There are no weather alerts for ...." when there are no weather alerts. However, when there is an alert, it simply displays a message like "Short-term forecast for ..." with no further information.
How are other people getting weather alert info in their conkys?
I have configured Nagios on SLES 10 SP2. I could configure nagios but 2 things are not working correctly.
1.It doesnt show correct disk utilization for /local partition.
2.It doesnt send Alerts.
I have installed NAGIOS (nagios-3.2.0-11.1, nagios-plugins-1.4.14-11.1 and few other which are required to remove dependency) on server and I have installed nagios (nagios-plugins-1.4.14-11.1, nagios-nrpe-client-2.12-11.1 and few other packages to remove dependency) on client.
Configuration files from NAGIOS server: nagios.cfg (Since this file is big, I have copied the relevant portion only. Let me know if any specific info is required from this file)=>
log_file=/var/log/nagios/nagios.log
cfg_file=/etc/nagios/objects/commands.cfg
cfg_file=/etc/nagios/objects/contacts.cfg
cfg_file=/etc/nagios/objects/contactgroups.cfg
cfg_file=/etc/nagios/objects/timeperiods.cfg
[Code].....
I'm seeing a problem on RHEL5, whereby all users can receive mail (/var/spool/mail/<user>), but only root gets a new mail alert when logging in.
The relevant bash variables ($MAIL, $MAILCHECK) seem to be set for all users.