echo doesn't try to translate anything unless you tell it to. You can send arbitrary ASCII characters with echo like
Code:
# ctrl-Z
echo -en "\x1a" >&5
The -e part tells it to convert \x codes into ASCII characters. -n tells it not to apppend a newline.
I also have a suspicion this fd-opening thing is only working because 'echo' is a bash builtin so doesn't need to launch a new process. Try to avoid pipes and such to avoid unexpected problems writing to the serial device..
---------- Post updated at 02:06 PM ---------- Previous update was at 01:59 PM ----------
Code:
stty: /dev/ttyS3: unable to perform all requested operations
Did you make a typo? That's not the device you were using before.
I'm trying to unmount a file system, but umount says the device is busy. A fuser -c /myfs tells me that nothing on this fs is in use. Any idea?
Oh, and btw, why isn't my signature beeing displayed? Show user's signature is enabled and I have entered one :/ (10 Replies)
Anyone have any idea why I cannot umount a directory even though fuser shows no process attached to it?
fuser -cu /data/oracle/GMPSHRDM/export
/data/oracle/GMPSHRDM/export:
umount /data/oracle/GMPSHRDM/export
umount: cannot unmount /data/oracle/GMPSHRDM/export : Device busy
umount:... (2 Replies)
Hi,
I'm trying to do a sharity mount to mount a terastation network drive.
I'm getting a Device or resource busy message after my mount command. Please see output below...
# /usr/local/sharity3/bin/sharity mount smb://labbackup01/bakup_data /mnt/labbackup01
Device or resource busy.... (2 Replies)
Ciao a tutti!!!
il mio problema è questo: sto cercando di inviare dei comandi AT da PC a cellulare utilizzando il bluetooth e cygwin e vorrei visualizzare le risposte nella shell bash. Per farlo apro due terminali utilizzando le seguente istruzioni:
xterm &
Sul primo scrivo
cat /dev/ttyS2
... (0 Replies)
Ciao a tutti!!!
il mio problema è questo: sto cercando di inviare dei comandi AT da PC a cellulare utilizzando il bluetooth e cygwin e vorrei visualizzare le risposte nella shell bash. Per farlo apro due terminali utilizzando le seguente istruzioni:
xterm &
Sul primo scrivo
cat /dev/ttyS2
... (1 Reply)
hello to everybody
I have Ubuntu Lucid 10.04 installed on my Desktop and I have a PCI serial card in my computer and it has only one serial port.
Actually I want to use this serial port for the serial communication and for that I executed this command :
$ setserial -g /dev/ttyS
and I... (0 Replies)
Hi Everyone,
I am trying to remove a directory:
$ rm -rf directory_name/
rm: cannot remove `directory_name/filename': Device or resource busy
What does this mean, and why can't I remove these files? I already tried moving into the directory, and removing the files individually, but I... (7 Replies)
Is there a trick to mounting swap in n a lvm? I can't get it to work.
# swapon -va
swapon on /dev/mapper/VG-lv_swap
swapon: /dev/mapper/VG-lv_swap: found swap signature: version 1, page-size 4, same byte order
swapon: /dev/mapper/VG-lv_swap: pagesize=4096, swapsize=4294967296,... (1 Reply)
Hi there
After making a backup copy of it sometimes happens that when I want to unmount an NFS indicates the error:umount: /path_mount busy: Device busy (Error 16)
if I run lsoff, I can not find the process that is blocking the application.
I'm using OpenServer 5.0.2c as one NFS server ... (14 Replies)
Hi,
Unable to make tape backup, please help.
/opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00
* Creating local directories for configuration files and archive.
======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery.
(Mon... (4 Replies)
Discussion started by: anuragr
4 Replies
LEARN ABOUT DEBIAN
blueproximity
BLUEPROXIMITY(1)BLUEPROXIMITY(1)NAME
blueproximity - locks/unlocks your desktop tracking a bluetooth device
SYNOPSIS
blueproximity
DESCRIPTION
blueproximity helps you adding a little more security to your desktop. It does so by detecting one of your bluetooth devices, most likely
your mobile phone, and keeping track of its distance. If you move furter than a certain distance from your computer for longer than a given
time, it automatically locks your desktop (or starts an arbitrary shell command). The "distance" must be specified as a measure of blue-
tooth signal strength rather than in meters, but BlueProximity's setup procedure helps with this by showing you an indicator of current
signal strength. Once away, if you return nearer than a given level for a set time your computer unlocks magically without any interaction
(or starts any other shell command you want).
Have a look at the package documentation in your distribution's doc directory, likely /usr/share/doc/blueproximity, to read the complete
html manual or visit the website http://blueproximity.sourceforge.net .
OPTIONS
blueproximity doesn't support any command-line parameter.
FILES
~/.blueproximity/*.conf Config files for each profile.
SEE ALSO gnome-screensaver-command(1).
AUTHOR
blueproximity was written by Lars Friedrichs <larsfriedrichs@gmx.de>.
This manual page was written by Francesco Namuri <francesco@namuri.it> and Lars Friedrichs for the Debian project and Ubuntu (but may be
used by others).
Lars Friedrichs February 06, 2008 BLUEPROXIMITY(1)