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

The name of the pictureThe name of the pictureThe name of the pictureClash 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







share|improve this question
























    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







    share|improve this question






















      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







      share|improve this question












      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









      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 22 at 12:35









      Tim

      7,6384299167




      7,6384299167




















          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.






          share|improve this answer



























            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





            share|improve this answer




















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "89"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              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






























              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.






              share|improve this answer
























                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.






                share|improve this answer






















                  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.






                  share|improve this answer












                  ~/.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.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 22 at 16:47









                  muclux

                  2,1231521




                  2,1231521






















                      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





                      share|improve this answer
























                        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





                        share|improve this answer






















                          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





                          share|improve this answer












                          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






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Apr 22 at 17:22









                          Sebastian Stark

                          4,703938




                          4,703938



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              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













































































                              Popular posts from this blog

                              How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                              Trouble downloading packages list due to a “Hash sum mismatch” error

                              How do I move numbers in filenames, in a batch renaming operation?