Where would the stdout output by `~/.profile` have gone when starting Ubuntu?

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
My ~/.profile contains a command which outputs to stdout when Ubuntu 16.04 with LXDE is started.
I grep /var/log/ for the output, but found nothing. Where would the output have gone, or is it lost forever?
Thanks.
See also https://unix.stackexchange.com/q/435189/674
startup .profile
add a comment |Â
up vote
0
down vote
favorite
My ~/.profile contains a command which outputs to stdout when Ubuntu 16.04 with LXDE is started.
I grep /var/log/ for the output, but found nothing. Where would the output have gone, or is it lost forever?
Thanks.
See also https://unix.stackexchange.com/q/435189/674
startup .profile
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
My ~/.profile contains a command which outputs to stdout when Ubuntu 16.04 with LXDE is started.
I grep /var/log/ for the output, but found nothing. Where would the output have gone, or is it lost forever?
Thanks.
See also https://unix.stackexchange.com/q/435189/674
startup .profile
My ~/.profile contains a command which outputs to stdout when Ubuntu 16.04 with LXDE is started.
I grep /var/log/ for the output, but found nothing. Where would the output have gone, or is it lost forever?
Thanks.
See also https://unix.stackexchange.com/q/435189/674
startup .profile
asked Apr 22 at 12:35
Tim
7,6384299167
7,6384299167
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
~/.profile is a user specific script file (contrary to the scripts in the unix question you quoted). If you want to capture its output you have to redirect stdout and/or stderr to a file.
In /var/log you can see traces of events that are system relevant or concern all users.
add a comment |Â
up vote
2
down vote
Depending on the login manager you use, ~/.profile is not even executed when you login graphically, see https://superuser.com/questions/752493/profile-in-lxde#847051.
Also, in case it is executed (more technically correct "sourced"), the output to standard output will most likely be discarded.
If you want to write a log message, you could use the logger command (http://manpages.ubuntu.com/manpages/artful/man1/logger.1.html) to write to the system log, simply by piping your output into the logger command like this:
myCommand | logger
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
~/.profile is a user specific script file (contrary to the scripts in the unix question you quoted). If you want to capture its output you have to redirect stdout and/or stderr to a file.
In /var/log you can see traces of events that are system relevant or concern all users.
add a comment |Â
up vote
2
down vote
~/.profile is a user specific script file (contrary to the scripts in the unix question you quoted). If you want to capture its output you have to redirect stdout and/or stderr to a file.
In /var/log you can see traces of events that are system relevant or concern all users.
add a comment |Â
up vote
2
down vote
up vote
2
down vote
~/.profile is a user specific script file (contrary to the scripts in the unix question you quoted). If you want to capture its output you have to redirect stdout and/or stderr to a file.
In /var/log you can see traces of events that are system relevant or concern all users.
~/.profile is a user specific script file (contrary to the scripts in the unix question you quoted). If you want to capture its output you have to redirect stdout and/or stderr to a file.
In /var/log you can see traces of events that are system relevant or concern all users.
answered Apr 22 at 16:47
muclux
2,1231521
2,1231521
add a comment |Â
add a comment |Â
up vote
2
down vote
Depending on the login manager you use, ~/.profile is not even executed when you login graphically, see https://superuser.com/questions/752493/profile-in-lxde#847051.
Also, in case it is executed (more technically correct "sourced"), the output to standard output will most likely be discarded.
If you want to write a log message, you could use the logger command (http://manpages.ubuntu.com/manpages/artful/man1/logger.1.html) to write to the system log, simply by piping your output into the logger command like this:
myCommand | logger
add a comment |Â
up vote
2
down vote
Depending on the login manager you use, ~/.profile is not even executed when you login graphically, see https://superuser.com/questions/752493/profile-in-lxde#847051.
Also, in case it is executed (more technically correct "sourced"), the output to standard output will most likely be discarded.
If you want to write a log message, you could use the logger command (http://manpages.ubuntu.com/manpages/artful/man1/logger.1.html) to write to the system log, simply by piping your output into the logger command like this:
myCommand | logger
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Depending on the login manager you use, ~/.profile is not even executed when you login graphically, see https://superuser.com/questions/752493/profile-in-lxde#847051.
Also, in case it is executed (more technically correct "sourced"), the output to standard output will most likely be discarded.
If you want to write a log message, you could use the logger command (http://manpages.ubuntu.com/manpages/artful/man1/logger.1.html) to write to the system log, simply by piping your output into the logger command like this:
myCommand | logger
Depending on the login manager you use, ~/.profile is not even executed when you login graphically, see https://superuser.com/questions/752493/profile-in-lxde#847051.
Also, in case it is executed (more technically correct "sourced"), the output to standard output will most likely be discarded.
If you want to write a log message, you could use the logger command (http://manpages.ubuntu.com/manpages/artful/man1/logger.1.html) to write to the system log, simply by piping your output into the logger command like this:
myCommand | logger
answered Apr 22 at 17:22
Sebastian Stark
4,703938
4,703938
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027185%2fwhere-would-the-stdout-output-by-profile-have-gone-when-starting-ubuntu%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password