Jump to content

using motd help! script !?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
beidog

beidog

    Newbie

  • Members
  • Pip
  • 2 posts
I need to create a method of displaying the Message of the Day
(motd) in a xmessage box when the user logs into our systems via GUI. If the user connects to the system via text mode, the motd should only display as text.

Create a script or method to determine if a student is logged in via
the graphical user's interface (GUI) or via text mode.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
What operating system?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
beidog

beidog

    Newbie

  • Members
  • Pip
  • 2 posts
red hat Linux

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
So, you'll need to see whether they have x-windows running. One way would be to try to send the xmessage box. If it returns an error message then use the text version.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog