![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Where am I?
Hi!
Is there any command to tell me where did I click? I know it's a litle confuse but it's like this. if I execute this script by clicking with the right button of my mouse, it gaves me the dir or file where I clicked #!/bin/sh zenity --info --title="Echo:" --text "`echo "?????"`" this would be useful to use in a program that I've in mind thanks |
|
||||
|
Quote:
|
|
|||||
|
Quote:
Oh. Try this, man. Code:
#!/bin/sh file=`zenity --list --title="Choose the FILE you wish to view" --column="File" *` zenity --info --title="file, directory..." --text "directory: $PWD\nfile: $file" |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|