Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 18 Nov 2017, 08:29
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
difficulty with Xdialog --msgbox
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
arivas_2005

Joined: 25 Feb 2007
Posts: 191

PostPosted: Sat 23 Sep 2017, 23:40    Post subject:  difficulty with Xdialog --msgbox
Subject description: SOLVED!
 

regards
I can not see the file list
I use this code
Code:
#!/bin/bash
# extraer lista de archivos seleccionados en rox
f_marcados=$@
dosp=`echo ""$f_marcados"" | sed 's, /,\\|/,g'`
Xdialog --msgbox ""$dosp"" 0 0
numfiles=`echo "$dosp" | awk -F'|' '{print NF}'`
Xdialog --msgbox $numfiles 0 0
for i in $(eval echo {1..$numfiles});
   do
      listado[$i]=`echo ""$dosp"" | awk -F'|' '{print $'$i'}'  | awk '{printf $0, "%s\r\n"}' `
    done
Xdialog --msgbox  ""${listado[@]}"" 0 0
the Xdialog --msgbox look like this
Xdialog-vista.png
 Description   
 Filesize   32.32 KB
 Viewed   91 Time(s)

Xdialog-vista.png


Last edited by arivas_2005 on Sun 24 Sep 2017, 15:38; edited 1 time in total
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1389
Location: Japan

PostPosted: Sun 24 Sep 2017, 02:59    Post subject:  

Code:
#!/bin/bash
f_marcados=$(echo "$@" | sed 's, /,\n/,g')
Xdialog --msgbox "$f_marcados" 0 0
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0240s ][ Queries: 12 (0.0031s) ][ GZIP on ]