dev-null Questions
1
Solved
On Windows, NUL is the null output device similar to /dev/null on Linux.
With Oracle Java 8 Update 331, trying to get a new FileOutputStream("NUL:") throws an exception. Previously (Java ...
3
Solved
I am running a huge task [automated translation scripted with perl + database etc.] to run for about 2 weeks non-stop. While thinking how to speed it up I saw that the translator outputs everything...
Dashed asked 27/4, 2010 at 21:6
2
Android 11 introduced multiple changes to file storage and access. Apparently one of them is that one can no longer target output to '/dev/null' (my scenario is actually exactly explained in this o...
Tolson asked 20/1, 2021 at 13:4
6
Solved
We have a daemon that contains a lot of print messages. Since we are working on an embedded device with a weak CPU and other constraint hardware, we want to minimize any kinds of costs (IO, CPU, et...
Aprilaprile asked 15/1, 2019 at 9:40
3
Solved
I want to suppress the output of my script running under DOS, similar to the following under a *nix environment:
$ command 1>/dev/null
How can I do this?
2
Solved
I'm trying to find an easy way to turn logging to a text file on and off much like the example seen here in Python. Their solution was to use a valid file name where logging is desired and to use t...
4
Solved
I want to suppress certain fprintf calls by redirecting the destination FILE to /dev/null. But can I be sure, that fopen("/dev/null", "w"); NEVER returns NULL. In other words, is it everytime possi...
1
Solved
I've used /dev/null a lot in bash programming to send unnecessary output into a black hole.
For example, this command:
$ echo 'foo bar' > /dev/null
$
Will not echo anything. I've read that ...
1
My Python script is calling a shell command via os.system as:
os.system('sudo ifdown wlan0 &> /dev/null')
If I run this command without Python, the output is suppressed, in Python, ...
1
Solved
Imagine the following scenario:
Manager has created a team project and decided to use (latest) git as VCS for the project. Developer team will be working using (latest) VS2015 (Enterprise) IDE....
Nagle asked 31/1, 2016 at 7:52
3
Solved
I use the following script to compare to folders:
if diff "/home/folder1/" "/home/folder2/" &> /dev/null ; then
echo "Files in the two folders are the same"
else
echo "Files in the two f...
Leia asked 16/7, 2014 at 9:38
3
Solved
I want to run a program (google-chrome) in the background, but prevent it from outputting any messages to the terminal.
I tried doing this:
google-chrome 2>&1 1>/dev/null &
Howeve...
Marijo asked 2/8, 2013 at 9:7
3
How to redirect all commands executed on the bash to /dev/null ?
It's obvious that for a command we have to do:
command > /dev/null 2>&1
How about all commands that will be executed f...
2
Solved
Why can't I call os.stat on the special Windows file nul?
>>> import os
>>> os.stat('nul')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
Win...
1
Solved
according to a hint from another thread I want to analyze pointers, if their dereferencing would cause an segmentation faults or not. The idea is to write code like this:
bool IsPointerValid( void...
1
© 2022 - 2024 — McMap. All rights reserved.