Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
6
votes
4
answers
4477
views
How can I alert on completion of a long task over ssh?
My desktop is Ubuntu, which has the handy program `notify-send`, which pops up an alert on the desktop. It also has the following handy alias built in: $ type alert alert is aliased to `notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e 's/^\s*[0-9...
My desktop is Ubuntu, which has the handy program
notify-send
, which pops up an alert on the desktop. It also has the following handy alias built in:
$ type alert
alert is aliased to `notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e 's/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//')"'
This means that you can run very-long-running-command; alert
, leave the terminal running in the background, and receive a notification when the task is complete.
When you’re on a CentOS server through ssh, things are a little trickier. Here’s one way to do it:
localhost$ ssh me@example.net; alert
example.net$ very-long-running-command; exit
This works, after a fashion, but exiting after every command is not generally what I want to do.
My computer doesn’t have speakers. It can beep.
TRiG
(331 rep)
Apr 3, 2015, 02:58 PM
• Last activity: Apr 30, 2025, 08:53 AM
1
votes
2
answers
2435
views
Send a 'net send like' message from a Linux Host to ALL Linux and Windows computers on the network
I have a mixed set of computers on my work environment here, comprsed of a few Fedora Workstations, CentOS servers, Windows 2016 servers and Windows 10 Workstations. Now when I need to update a firewall or switch I normally send out an e-mail with a time and date to execute that. But I would also li...
I have a mixed set of computers on my work environment here, comprsed of a few Fedora Workstations, CentOS servers, Windows 2016 servers and Windows 10 Workstations.
Now when I need to update a firewall or switch I normally send out an e-mail with a time and date to execute that. But I would also like to inform everyone still on the network 5 minutes before and at the time of start the execution.
Normally I use the windows tool net send or msg (lately) to shoot out a message with an unmistakable not able to ignore message. Now Myself switched to Fedora as my main driver, and struggle to send out simular messages... I would like to send out 1 message to all Windows and Linux users on the network. Is that possible or if required te make 2 messages 1 for all linux users, and 1 for all windows users fine, but they need to be send to ALL users at once. from my Fedora machine.
Tried smbclient but always get an error.
Tried linpopup can't get it to work.
are there alternatives?
SHLelieveld
(443 rep)
Jun 27, 2021, 10:25 AM
• Last activity: Aug 22, 2024, 12:03 PM
0
votes
0
answers
136
views
talk server (talkd) not working
A user on another machine on the same local network cannot call me with `talk`. My `talk`: alba@mac2011-manjaro% systemctl status talk ○ talk.service - Talk Server Loaded: loaded (/usr/lib/systemd/system/talk.service; indirect; preset: di> Active: inactive (dead) since Thu 2023-02-16 21:56:03 WET; 1...
A user on another machine on the same local network cannot call me with
talk
.
My talk
:
alba@mac2011-manjaro% systemctl status talk
○ talk.service - Talk Server
Loaded: loaded (/usr/lib/systemd/system/talk.service; indirect; preset: di>
Active: inactive (dead) since Thu 2023-02-16 21:56:03 WET; 15min ago
Duration: 3min 59.508s
TriggeredBy: ● talk.socket
Docs: man:talkd(8)
man:talk(1)
Process: 3170 ExecStart=/usr/bin/talkd (code=exited, status=0/SUCCESS)
Main PID: 3170 (code=exited, status=0/SUCCESS)
CPU: 5ms
Feb 16 21:52:04 mac2011-manjaro systemd: Started Talk Server.
Feb 16 21:56:03 mac2011-manjaro systemd: talk.service: Deactivated successfu>
alba@mac2011-manjaro% systemctl status talk.socket
● talk.socket - Talk Server Activation Socket
Loaded: loaded (/usr/lib/systemd/system/talk.socket; enabled; preset: disa>
Active: active (listening) since Thu 2023-02-16 21:43:51 WET; 28min ago
Until: Thu 2023-02-16 21:43:51 WET; 28min ago
Triggers: ● talk.service
Docs: man:ta alba@mac2011-manjaro% mesg
is y alba@mac2011- alba@mac2011-manjaro% mesg
is ymanjaro% mesg
is ylkd(8)
man:talk(1)
Listen: 0.0.0.0:518 (nslonslookup mach_namenslookup mach_namenslookup mach_namenslookup mach_nameokup mach_nameDatagram)
Tasks: 0 (limit: 19063)
Memory: 8.0K
CPU: 563us
CGroup: /system.slice/talk.socket
Feb 16 21:43:51 mac2011-manjaro systemd: Listening on Talk Server Activation
alba@mac2011-manjaro% mesg
is y
For the user on the other machine:
alba@mac2011-manjaro-1% talk alba@mac2011-manjaro
[Service connection established.]
[Your party is not logged on]
Each side has Manjaro Linux, Gnome desktop and only one terminal open.
What is wrong?
On the same local network with the same commands, Mac OS responds to talk
from other Linux or Mac OS machines.
Maybe useful:
alba@mac2011-manjaro% who
alba :1 2023-02-16 21:33 (:1)
alba@mac2011-manjaro% tty
/dev/pts/0
alba@mac2011-manjaro% w
11:09:38 up 1 day, 13:36, 1 user, load average: 1.54, 1.43, 1.33
USER TTY LOGIN@ IDLE JCPU PCPU WHAT
alba :1 Thu21 ?xdm? 22:21m 0.01s /usr/lib/gdm-x-session --run-sc
Pierre ALBARÈDE
(169 rep)
Feb 16, 2023, 10:46 PM
• Last activity: Feb 18, 2023, 11:18 AM
0
votes
1
answers
138
views
Journald and Sources of Log Messages
I would like to know what process is meant to write Timestapms (and other parts of Log messages) in ```Syslog``` protocol. In other words, is it ```Syslog``` that sets timestamp of log message (exact time of message beiing received) or the process that sends the message (exact time of message beiing...
I would like to know what process is meant to write Timestapms (and other parts of Log messages) in
protocol.
In other words, is it
that sets timestamp of log message (exact time of message beiing received) or the process that sends the message (exact time of message beiing sent)?
GabrijelOkorn
(25 rep)
Jan 8, 2023, 02:13 PM
• Last activity: Jan 8, 2023, 02:31 PM
1
votes
1
answers
161
views
What does it mean to say journald collects logs in an "unfakeable way"?
It is said in the [`systemd-journald.service` man page][1]: > The daemon will implicitly collect numerous metadata fields for each log messages in a secure and **unfakeable way**. See systemd.journal-fields(7) for more information about the collected metadata. What exactly does it mean to receive me...
It is said in the
systemd-journald.service
man page :
> The daemon will implicitly collect numerous metadata fields for each log messages in a secure and **unfakeable way**. See systemd.journal-fields(7) for more information about the collected metadata.
What exactly does it mean to receive message in unfakeable way?
GabrijelOkorn
(25 rep)
Jan 5, 2023, 02:58 PM
• Last activity: Jan 5, 2023, 03:49 PM
0
votes
1
answers
712
views
Where are TPM 2.0 selftest messages logged?
Hopefully, this is a simple question regarding hardware I'm just now learning how to use: the TPM. My laptop has a TPM 2.0, and I need to become familiar with some basic functionality offered by the `tpm2-tools` package. To start, I confirmed that the `tpm2-abrmd` (the daemon) service is active. The...
Hopefully, this is a simple question regarding hardware I'm just now learning how to use: the TPM.
My laptop has a TPM 2.0, and I need to become familiar with some basic functionality offered by the
tpm2-tools
package. To start, I confirmed that the tpm2-abrmd
(the daemon) service is active. Then I ran
sudo tpm2_selftest -V
and was expecting a verbose output in the terminal. However, nothing is output in the terminal when I execute the command. The manual describes the messages sent by the TPM but not *where* they are sent/logged. I checked /var/log/syslog
but found nothing.
Does anyone know where the messaging data is stored? Or if it *is* stored, for that matter?
placebo_me_please
(21 rep)
May 9, 2022, 07:59 PM
• Last activity: May 9, 2022, 08:43 PM
33
votes
2
answers
35347
views
How do I leave a message for another (local) user?
I know you can use `write` to send a message to a currently logged in user, but how do you leave a message for a user who is not logged in? The solution I have seen is modify the motd, but that will be displayed to all users. How can I leave a message for individual users to read when they login?
I know you can use
write
to send a message to a currently logged in user, but how do you leave a message for a user who is not logged in? The solution I have seen is modify the motd, but that will be displayed to all users. How can I leave a message for individual users to read when they login?
styfle
(433 rep)
Sep 24, 2011, 01:06 AM
• Last activity: Dec 29, 2021, 02:47 PM
0
votes
1
answers
233
views
Deactivate wpa_cli notifications
Is it possible to deactivate `wpa_cli` notifications/messages like ` WPS_AP_AVAILABLE`? Because it spams it, and in a VT where you have to slowly type MACs@ and bssIDs, it's really hard with those bothering messages
Is it possible to deactivate
wpa_cli
notifications/messages like WPS_AP_AVAILABLE
? Because it spams it, and in a VT where you have to slowly type MACs@ and bssIDs, it's really hard with those bothering messages
aaa
(177 rep)
Jul 16, 2021, 07:53 PM
• Last activity: Aug 24, 2021, 01:29 PM
2
votes
1
answers
1332
views
Send message to another user
I can't send message to another user in spite of enabling message. I'm using ubuntu 20.04 on VMware workstation. Window 1 nguyenvanen@nguyenvanen:~$ mesg is y nguyenvanen@nguyenvanen:~$ _ Window 2 itachi@nguyenvanen:~$ write nguyenvanan write: nguyenvanan has messages disabled itachi@nguyenvanen:~$...
I can't send message to another user in spite of enabling message. I'm using ubuntu 20.04 on VMware workstation.
Window 1
nguyenvanen@nguyenvanen:~$ mesg
is y
nguyenvanen@nguyenvanen:~$ _
Window 2
itachi@nguyenvanen:~$ write nguyenvanan
write: nguyenvanan has messages disabled
itachi@nguyenvanen:~$ _
Illustration

An Nguyễn
(29 rep)
Sep 18, 2020, 07:15 AM
• Last activity: Sep 18, 2020, 09:02 AM
2
votes
1
answers
338
views
set XMPP priority of the jabber client in pidgin
I'm using *pidgin* Jabber client ([pidgin-2.13.0-alt6](https://packages.altlinux.org/en/sisyphus/srpms/pidgin) on ALT Sisyphus), and I'd like [to set XMPP priority](https://superuser.com/a/1137749/65570) in pidgin. The reason: I'm also connecting to my Jabber account with another client from mobile...
I'm using *pidgin* Jabber client ([pidgin-2.13.0-alt6](https://packages.altlinux.org/en/sisyphus/srpms/pidgin) on ALT Sisyphus), and I'd like [to set XMPP priority](https://superuser.com/a/1137749/65570) in pidgin.
The reason:
I'm also connecting to my Jabber account with another client from mobile smartphone (*aTalk*), and I'd like to set XMPP priority in pidgin, so that whenever I'm at my computer (where pidgin is running), it is [selected as the one which receives the messages](https://unix.stackexchange.com/q/163698/4319) people send to me, and whenever I'm away, the mobile client receives them (because there is more chance I'll see them on the mobile when I'm away).
Where do I set XMPP priority in pidgin?
imz -- Ivan Zakharyaschev
(15862 rep)
Feb 20, 2020, 05:51 PM
• Last activity: Feb 28, 2020, 11:47 PM
2
votes
0
answers
1006
views
How to check usage of mqueues reliably?
I run a testing server for software that depends on the massive usage of [mqueues][1] (POSIX messages queues). I increased limits to a reasonable level and got it working a long time ago. However, the number of tests (and their mqueues) keeps rising and the tests are starting to fail at creating new...
I run a testing server for software that depends on the massive usage of mqueues (POSIX messages queues). I increased limits to a reasonable level and got it working a long time ago. However, the number of tests (and their mqueues) keeps rising and the tests are starting to fail at creating new mqueues, although the limits don’t seem to be exhausted.
$ cat /proc/sys/fs/mqueue/queues_max # maximum mqueue count
65535
$ sudo mount -t mqueue none /mnt
$ ls -1 /mnt | wc -l # current mqueue count
8445
$ ulimit -q # maximum bytes in mqueues
819200
$ du -s /mnt # current mqueues size
0 /mnt
After a failing call to
mq_open()
, errno
is set to 24 which means (according to /usr/include/asm-generic/errno-base.h
):
#define EMFILE 24 /* Too many open files */
Therefore I checked the limit for open files but it seems to be not exhausted, too.
$ ulimit -n # file descriptors limit
1024
$ lsof -u $(whoami) | wc -l # currently open files
306
**Are these checks correct? Is there anything more I should check?**
---
I have looked at https://unix.stackexchange.com/questions/230346/how-to-check-ulimit-usage but the usage checks seem to be specific to particular limits and mqueues are not mentioned there.
Since the behavior of mqueues has been changing over time due to bugs , my kernel version is 4.1.13-rt15+
.
I built the kernel myself using the appropriate real-time patch with no further modifications. I have not switched the kernel recently (when the problem started to appear).
Melebius
(767 rep)
Jan 3, 2018, 10:30 AM
• Last activity: Nov 19, 2019, 09:46 AM
0
votes
2
answers
104
views
Is there a program to pair my phone with my computer for SMS messaging?
Sometimes I have to manage a conversations over SMS through my phone. This is especially frustrating when I'm trying to get work done on my computer. I don't mind holding a conversation but there is a considerable amount of mental and physical task-switching by picking up the phone, turning it on, u...
Sometimes I have to manage a conversations over SMS through my phone. This is especially frustrating when I'm trying to get work done on my computer.
I don't mind holding a conversation but there is a considerable amount of mental and physical task-switching by picking up the phone, turning it on, unlocking it, responding, deciding whether to keep holding it or set it down again and then repeat.
It would be very convenient if I could manage these conversations from my computer when I'm logged in.
Before anyone asks, I cannot ignore these messages and they often require a response. It is unreasonable to ask all of my contacts to instead contact me through an alternate preferred messaging app as SMS is already viewed as the lowest common denominator between platforms.
My phone is running Android. My workstation is Fedora running MATE Desktop.
Brownie points if there is a solution that integrates with Pidgin.
Zhro
(2831 rep)
Sep 12, 2019, 06:26 PM
• Last activity: Sep 12, 2019, 06:47 PM
7
votes
1
answers
422
views
How to suppress a message from a program while installing it to use in a bash program?
**PROBLEM:** I have a program written in bash that does a lot of stuff like install new software on the system. One of the programs it installs has an extravagant message appear where you get some info about usage and the configuration file and what it does if you don't edit the config file. **And t...
**PROBLEM:**
I have a program written in bash that does a lot of stuff like install new software on the system.
One of the programs it installs has an extravagant message appear where you get some info about usage and the configuration file and what it does if you don't edit the config file.
**And then waits for user input.**
This message is a
The program that displays this message is
dialog
kind of message in a GUI:

portsentry
and the system is Debian Stretch.
**QUESTION:**
How can I suppress this message so there is no communication between my program and the user?
somethingSomething
(6209 rep)
Oct 18, 2018, 01:19 PM
• Last activity: Oct 19, 2018, 12:23 AM
1
votes
2
answers
133
views
Print a message a given number of times, right after system boot (init) in a GUI-less system
I want that for a given number of system boots (say, 1 or 2 system boots), a message will appear. I will store the message somewhere, maybe in a variable: `message='If you finished testing, make sure to remove the testing application.'!'` ## Notes: - I use Ubuntu server 16.04 and aim for a solution...
I want that for a given number of system boots (say, 1 or 2 system boots), a message will appear.
I will store the message somewhere, maybe in a variable:
message='If you finished testing, make sure to remove the testing application.'!'
## Notes:
- I use Ubuntu server 16.04 and aim for a solution for GUI-less systems.
- The purpose of the code is to have a nice way to remind myself of a certain task, if, for some reason, I didn't recall that it is a good time to do it.
- I assume I should store the variable somewhere "deeper" than RAM, maybe in a file I'll create for it, maybe another method. I'm not sure.
- Cron isn't good because it's repetitive, and not for a given number of executions.
- This is good in case you reboot
/ turn off / power outage --- you get a reminder for an important task.
## Clarification
I tried to describe a case when a user turnes on the machine, and in the moment the primary prompt appears, along with it, will appear the message I mentioned.
Arcticooling
(1 rep)
Dec 5, 2017, 03:11 AM
• Last activity: Dec 5, 2017, 12:53 PM
2
votes
2
answers
620
views
talk returns error when trying to connect to user at other machine
If I try to `talk` to a user on a machine on the local network, I get: ~ % talk toothrot@othermachine [Service connection established.] Error on write to talk daemon: Invalid argument I'm running Arch. `talk` works fine between users on the same machine. Why isn't this working?
If I try to
talk
to a user on a machine on the local network, I get:
~ % talk toothrot@othermachine
[Service connection established.]
Error on write to talk daemon: Invalid argument
I'm running Arch.
talk
works fine between users on the same machine. Why isn't this working?
Toothrot
(3705 rep)
Mar 17, 2017, 02:01 PM
• Last activity: Dec 1, 2017, 05:57 PM
10
votes
1
answers
2370
views
A wall message warned of impending reboot or shutdown, but I missed the details. How can I obtain them?
While some output was being written to my terminal, a wall message passed by. It went too fast for me to read it. All I could tell was Broadcast message from The system is going down for And even most of that is an educated guess. Crucially, I missed *when* it's going down. 20 minutes? 2 hours? 24 h...
While some output was being written to my terminal, a wall message passed by. It went too fast for me to read it. All I could tell was
Broadcast message from
The system is going down for
And even most of that is an educated guess.
Crucially, I missed *when* it's going down. 20 minutes? 2 hours? 24 hours?
Can I either reread the wall message, or look for planned shutdowns/reboots somewhere? I'm just an ordinary user without root.
gerrit
(3607 rep)
Jul 11, 2017, 05:17 PM
• Last activity: Nov 23, 2017, 05:18 AM
73
votes
2
answers
333515
views
Sending messages to another user
Is there any command to send messages through the Linux shell to other people on the same network? I'm using `write user` and then write the message itself. But there's any command that doesn't show my username or that I'm trying to message them The command I'm using will show this to the user I'm t...
Is there any command to send messages through the Linux shell to other people on the same network? I'm using
write user
and then write the message itself. But there's any command that doesn't show my username or that I'm trying to message them
The command I'm using will show this to the user I'm trying to contact (code taken from the web):
Message from root@dev.example.com on pts/1 at 17:11 ...
Ricardo Almeida
(855 rep)
Nov 8, 2013, 06:41 PM
• Last activity: May 22, 2017, 07:20 PM
5
votes
2
answers
32015
views
Is there any way to send sms to a mobile number using shell script?
I want to send sSMS periodically to certain Mobile numbers (Indian mobile numbers.) Is there a way I can send an SMS with my own cellphone number or by creating an account on a site like `way2sms`?
I want to send sSMS periodically to certain Mobile numbers (Indian mobile numbers.) Is there a way I can send an SMS with my own cellphone number or by creating an account on a site like
way2sms
?
Deepak K M
(127 rep)
May 16, 2015, 08:01 AM
• Last activity: Dec 24, 2016, 02:39 PM
2
votes
1
answers
340
views
How to install SMS Servers and Phone Servers?
If we want our servers to email, we know that we should install `sendmail` or `qmail`. If we want our servers to send SMS or robot calling (e.g voice confirmation [insecure method] ), what should we install on our servers?
If we want our servers to email, we know that we should install
sendmail
or qmail
. If we want our servers to send SMS or robot calling (e.g voice confirmation [insecure method] ), what should we install on our servers?
Spacez Ly Wang
(123 rep)
Oct 30, 2012, 03:37 PM
• Last activity: Sep 27, 2016, 07:38 PM
0
votes
1
answers
1362
views
Installation causing error
I have downloaded g2ipmsg from http://www.ipmsg.org/archive/g2ipmsg-0.9.6.tar.gz While installing this package, it is causing some error. checking for G2IPMSG... configure: error: Package requirements (libgnomeui-2.0 >= 2.14 gtk+-2.0 >= 2.4 glib-2.0 >= 2.8) were not met: No package 'libgnomeui-2.0'...
I have downloaded g2ipmsg from http://www.ipmsg.org/archive/g2ipmsg-0.9.6.tar.gz
While installing this package, it is causing some error.
checking for G2IPMSG... configure: error: Package requirements (libgnomeui-2.0 >= 2.14
gtk+-2.0 >= 2.4
glib-2.0 >= 2.8) were not met:
No package 'libgnomeui-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables G2IPMSG_CFLAGS
and G2IPMSG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
How to resolve this error please let me know.
user3021349
(17249 rep)
Mar 21, 2014, 07:33 AM
• Last activity: Sep 25, 2016, 05:31 PM
Showing page 1 of 20 total questions