224,632 reputation
28323635
bio website stackexchange.com/users/…
location
age
visits member for 4 years, 2 months
seen 21 hours ago

Moderator♦ pro tempore on French Language, Computer Science and Software Recommendations. I'm also a unix amateur, and a developer with a computer science background and security leanings by trade.

Interested in embedded systems? Join the Embedded Programming and Design proposal!

Programmeurs francophones : participez à Stack Overflow en français.

Avatar picture slightly adapted from a photo by Luridiformis (Zonda Grattus).


21h
comment Row merger due to redunt splits of a single row in Unix
Use the code formatting tool to format code (Ctrl+K or the {} button above the edit box).
21h
revised Row merger due to redunt splits of a single row in Unix
added 71 characters in body; edited tags
21h
revised Application that allows to show clipboard contents and its MIME type?
edited tags
21h
revised Installing a bz2 file
edited tags
21h
comment Reading Smart Card
@Renan A terminal emulator will let you connect to the reader, but then you still need to know how to operate the reader and how to talk to the card. Super_Slug: what kind of card is it? An authentication token of some kind? Do you have any idea what protocols it supports?
21h
reviewed Edit suggested edit on Regular expression using \\ vs using \
21h
revised Regular expression using \\ vs using \
Copy edited.
21h
revised Locating the terminal currently in use
edited tags
1d
comment Drop a specific file from the Linux filesystem cache?
chattr +S is not the same thing as O_DIRECT, it's the same thing as O_SYNC. O_DIRECT causes reads not to be cached (which is what this question is about), and writes not to be buffered, with no guarantee. O_SYNC causes only writes not to be buffered.
1d
awarded  Enlightened
1d
awarded  Nice Answer
1d
comment Why does this Shell script fail as cron job
Make sure that your local email is configured (it isn't by default in Ubuntu, or at least it used not to be in earlier versions). Cron sends you an email if a job fails or produces any output. If you need further help with this job, tell us what the email from cron contains.
1d
comment How can I encrypt a file?
Why not use a protocol such as HTTPS, SFTP or FTPS? If the communication is encrypted, adding a second layer of encryption won't gain you anything.
1d
comment Linux: Recovering a deleted dir that another terminal is still cd'ed into
Stop writing to the disk immediately. You may have a chance to recover individual files. The files are now fully deleted (as in: the space they occupy is marked as free), but their data may still be lying around. It won't be lying around any more if you overwrite it. Each file is likely to be an independent recovery effort. Better reach for your backups.
1d
revised Linux: Recovering a deleted dir that another terminal is still cd'ed into
edited tags
1d
revised Executable directory? And chmod o+w changing the terminal directory color?
edited tags
1d
comment How can a Bash script tell how it was run?
@Aescula This answer does what you requested in the question. If your notification mechanism doesn't work, you may want to ask another question, where you describe the notification mechanism that you used. But why don't you just start a terminal emulator and run the script in it?
1d
comment How can a Bash script tell how it was run?
@DanielAmaya No, you're misreading the man page, because you're confusing interactive shell with shell running in a terminal. A script (executed as a standalone program, through #!/bin/bash) is never interactive, even if it's running in a terminal. The remark about PS1 is admittedly misleading: bash sets it in an interactive shell, but it can also be set in a non-interactive shell, so it isn't a reliable test.
2d
answered How do I delete messages specified by a number range?
2d
revised How do I find the resident memory size of a process on busybox?
edited tags