LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-03-2017, 12:04 PM   #16
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,299

Original Poster
Rep: Reputation: 321Reputation: 321Reputation: 321Reputation: 321

It looks like a problem with the generated station list then.

Try adding 'echo' before 'sh -c' and at the end of the line add '> ~/soma.txt'

It should look like this:

Code:
echo sh -c "dialog $DIALOGOPTS --menu \"${TITCOL}Stations ($GENRE)\" $rows $cols $rows \
    $STATIONLIST" > ~/soma.txt   #2> $TMP
You should be able to post the soma.txt as an attachment here.
 
Old 12-03-2017, 12:14 PM   #17
BigTig
LQ Newbie
 
Registered: Aug 2015
Posts: 27

Rep: Reputation: Disabled
Hmmm, it automatically connected me to the first station on the list. Here's the file.
Attached Files
File Type: txt soma.txt (6.4 KB, 4 views)
 
Old 12-03-2017, 12:59 PM   #18
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,299

Original Poster
Rep: Reputation: 321Reputation: 321Reputation: 321Reputation: 321
Can you try adding a '\' after $STATIONLIST and putting the 2>$TMP on the line underneath:

Code:
  sh -c "dialog $DIALOGOPTS --menu \"${TITCOL}Stations ($GENRE)\" $rows $cols $rows \
    $STATIONLIST" \
    2> $TMP

  [ $? -ne 0 ] && return
 
Old 12-03-2017, 01:06 PM   #19
BigTig
LQ Newbie
 
Registered: Aug 2015
Posts: 27

Rep: Reputation: Disabled
When I added the '\' it just connects me to the "Folk Forward" station.
 
Old 12-03-2017, 01:08 PM   #20
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,299

Original Poster
Rep: Reputation: 321Reputation: 321Reputation: 321Reputation: 321
Did you remove that sleep line? There should be nothing between '2> $TMP' and '[ $? -ne 0 ] && return'
 
Old 12-03-2017, 01:11 PM   #21
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,299

Original Poster
Rep: Reputation: 321Reputation: 321Reputation: 321Reputation: 321
And you removed that # in front of 2> $TMP?
 
Old 12-03-2017, 01:27 PM   #22
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,299

Original Poster
Rep: Reputation: 321Reputation: 321Reputation: 321Reputation: 321
BigTig: can you try version 2.13.1 please?

http://dawoodfall.net/slackbuilds/noversion/soma
 
Old 12-03-2017, 01:28 PM   #23
BigTig
LQ Newbie
 
Registered: Aug 2015
Posts: 27

Rep: Reputation: Disabled
Yup. Here's what it looks like:

# sh -c properly sends the quoted strings to dialog
sh -c "dialog $DIALOGOPTS --menu "${TITCOL}Stations ($GENRE)" $rows $cols $rows \
$STATIONLIST" \
2> $TMP

[ $? -ne 0 ] && return
 
Old 12-03-2017, 01:31 PM   #24
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,299

Original Poster
Rep: Reputation: 321Reputation: 321Reputation: 321Reputation: 321
There shoudn't be a space after the '\' but maybe it's the forum adding that.

But please try update from a few mins ago.
 
Old 12-03-2017, 01:44 PM   #25
BigTig
LQ Newbie
 
Registered: Aug 2015
Posts: 27

Rep: Reputation: Disabled
I tried 2.13.1. Same result.
 
Old 12-03-2017, 01:57 PM   #26
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,299

Original Poster
Rep: Reputation: 321Reputation: 321Reputation: 321Reputation: 321
This is very strange. AFAIK only the two of you have this problem. For everyone else it seems to work.

I wonder if it's something in your environment?

Can you answer the following:

What terminal are you using?
Are you using screen?
What does sh --version output?
What does echo $TERM output?

It may help to find the cause.

And I take it you are using slackware 14.2?

Last edited by dive; 12-03-2017 at 01:58 PM.
 
Old 12-03-2017, 02:15 PM   #27
BigTig
LQ Newbie
 
Registered: Aug 2015
Posts: 27

Rep: Reputation: Disabled
Quote:
Originally Posted by dive View Post
This is very strange. AFAIK only the two of you have this problem. For everyone else it seems to work.

I wonder if it's something in your environment?

Can you answer the following:
I' be happy To!
What terminal are you using?
It happens in urxvt, xfce4-terminal, and tilda
Are you using screen?
Nope
What does sh --version output?
GNU bash, version 4.4.12(1)-release (x86_64-slackware-linux-gnu)
What does echo $TERM output?
xterm-256color
It may help to find the cause.

And I take it you are using slackware 14.2?
I'm running current. This started yesterday after the last update. It was fine on Friday, because I used it to listen to a radio show, and then after the update...no joy.
 
Old 12-03-2017, 02:30 PM   #28
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,299

Original Poster
Rep: Reputation: 321Reputation: 321Reputation: 321Reputation: 321
I tested with xfce4-terminal and urxvt and they both seem ok. The only thing that I noticed is that the cursor doesn't turn off with urxvt.

It looks like the big difference is the bash version. 14.2 has 4.3.48(1)-release.

You could try changing the shebang from /bin/sh to /bin/bash maybe.
 
Old 12-03-2017, 02:38 PM   #29
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,299

Original Poster
Rep: Reputation: 321Reputation: 321Reputation: 321Reputation: 321
You might also need to change the 'sh -c' to 'bash -c'. There are a few of those.

I'm going to make a -current vm and see if I sort it out.
 
Old 12-03-2017, 02:39 PM   #30
BigTig
LQ Newbie
 
Registered: Aug 2015
Posts: 27

Rep: Reputation: Disabled
Tried it, but it didn't work. I'm gonna try it on a clean current install when I can get to my other computer.
Thanks for your help so far, I'm sure we'll figure it out
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANN] Soma 2.12.0 dive Slackware 23 12-02-2017 12:29 PM
[ANN] Soma 2.11.3 dive Slackware 42 11-30-2017 03:41 PM
[ANN] Soma 2.10.0 dive Slackware 2 04-16-2015 05:32 AM
[ANN] Soma 2.8.1 dive Slackware 2 01-26-2012 02:55 AM
[ANN] Soma 2.7.8 dive Slackware 9 01-05-2012 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration