xmessage script problem SOLVED

Using applications, configuring, problems
Post Reply
Message
Author
hansol
Posts: 23
Joined: Sat 23 Nov 2013, 01:55

xmessage script problem SOLVED

#1 Post by hansol »

Hi guys,

So I'm trying to write a script that basically creates a pop-up asking the user "What are you working on?" in order to accurately log time on jobs correctly. I've tried to write it in two parts: (1) uses xmessage to create the popup (2) uses cron to schedule the timing of the pop-up

When I go into the terminal and type

Code: Select all

xmessage -display :0.0 "What are you working on?
the message displays correctly. However, when I create the following script

Code: Select all

#!/bin/bash
xmessage -display :0.0 "What are you working on?
and try to execute the script by clicking on it, the script doesn't produce a pop up. What am I doing wrong?

Thanks very much guys. With all the info here, I've actually managed to transition my entire business and related software over to linux. So I really appreciate all those who have taken the time to reply to my rookie queries.

SOLVED

I've left my crummy code up. Notice the very tail end of it. I'm missing a quotation mark. Once that was entered, the entry popped up correctly. FML

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#2 Post by MochiMoppel »

Add final quotation mark.

Post Reply