Fedora Linux Support Community & Resources Center
  #1  
Old 13th July 2017, 09:59 PM
lsatenstein Offline
Registered User
 
Join Date: Jun 2005
Location: Montreal, Que, Canada
Posts: 4,087
linuxfedorafirefox
Is there a gnome application that takes a bash command line

I'm looking for a simple gnome application with a single window

The window would allow me to issue various bash based commands.

The commands would not have to set environment variables to the environment that invokes the gnome shell

example [sudo gparted /dev/sdc ]

example2 [sudo cd $HOME/gronk && sudo make install]

By the way, wrote a fun program to xref /etc/fstab
Here is a sample output. The cross references are on the right.
The label names are pulled from /dev/disk subdirectories.

Code:
#
# /etc/fstab
# Created by anaconda on Thu Jul  6 12:01:01 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
#<file system>                             <mount>    <type>  <options>     <dmp fsck> <xref>      <label>
UUID=565ec02e-b425-426d-bc25-f8e30b6eaf19  /          btrfs   subvol=root00   0  0     /dev/sde6  fedora_f26e
UUID=6bc50bc6-11e9-487f-849e-91792ec96022  /backup    ext4    defaults        1  2     /dev/sdb2  sdb2backup
UUID=038ab00b-9a02-4047-af8f-3cd1d287f616  /boot      ext4    defaults        1  2     /dev/sde4  sde4Boot
UUID=565ec02e-b425-426d-bc25-f8e30b6eaf19  /home2     btrfs   subvol=home00   0  0     /dev/sde6  fedora_f26e
UUID=83db6873-4963-4816-a781-dde689593eb7  /home      ext4    defaults        0  0     /dev/sde1  sde1Home2
UUID=bdf0d983-0430-4b8b-8dd1-474769e797dd  /scratch   ext4    defaults        1  2     /dev/sdb1  sdb1Scratch
UUID=bd42259a-e385-49d1-a8e0-3520f392a038  swap       swap    defaults        0  0     /dev/sde5  sde5Swap
Want a copy of the program and sources. Just ask ...
__________________
Leslie in Montreal

Interesting web sites list
http://forums.fedoraforum.org/showth...40#post1697840
Reply With Quote
  #2  
Old 13th July 2017, 10:03 PM
dd_wizard Offline
Registered User
 
Join Date: Sep 2009
Posts: 2,035
linuxfedorafirefox
Re: Is there a gnome application that takes a bash command line

Gnome terminal comes to mind, but I'm guessing you thought of that one already.

dd_wizard
Reply With Quote
  #3  
Old 14th July 2017, 05:02 AM
ocratato Online
Registered User
 
Join Date: Oct 2010
Location: Canberra
Posts: 2,573
linuxfirefox
Re: Is there a gnome application that takes a bash command line

I would write a bash script with a zenity window for input, then use eval to execute the command.
The results could be captured and displayed in another window.
__________________
Has anyone seriously considered that it might be turtles all the way down?
That's very old fashioned thinking.
The current model is that it's holographic nested virtualities of turtles, all the way down.
Reply With Quote
  #4  
Old 14th July 2017, 08:26 AM
antikythera Offline
Administrator
 
Join Date: Dec 2013
Location: United Kingdom
Posts: 4,494
linuxchrome
Re: Is there a gnome application that takes a bash command line

those commands should work in gnome terminal under Xorg rather than Wayland because of the security policy preventing sudo of GUI applications from the terminal.
__________________
Latest survey shows that 3 out of 4 people make up 75% of the world's population - Stephen Hawking
Download, Install and Share Fedora
- Official ISO Torrents
| Live ISO Respins containing post-release updates
Reply With Quote
  #5  
Old 14th July 2017, 10:40 AM
HaydnH Offline
Registered User
 
Join Date: Feb 2005
Location: London, UK
Posts: 415
windows_7chrome
Re: Is there a gnome application that takes a bash command line

gnome-run (gmrun) etc?
Reply With Quote
  #6  
Old 17th July 2017, 04:52 PM
lsatenstein Offline
Registered User
 
Join Date: Jun 2005
Location: Montreal, Que, Canada
Posts: 4,087
linuxfedorafirefox
Re: Is there a gnome application that takes a bash command line

I want to avoid the terminal. If I want to look at a disk, I visit the terminal and run
sudo gparted /dev/sd(x) or sudo gparted /dev/sd(x) /dev/sd(y)

I single out one or two disks from my 5 disks on my system. But I have to enter terminal mode to view a gui output.

I was hoping for a gui app that first opens the terminal mode and passes whatever to the program that is on that command line.
__________________
Leslie in Montreal

Interesting web sites list
http://forums.fedoraforum.org/showth...40#post1697840
Reply With Quote
Reply

Tags
application, bash, command, gnome, line, takes

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove an application from gnome startup using command line? zeusys Using Fedora 1 27th May 2011 04:50 PM
Linux command line:Bash usage of source todd987345 Using Fedora 3 10th June 2010 08:28 PM
How to install gnome in command line ? mbrossard Servers & Networking 19 30th October 2008 11:14 PM
control which workspace a gnome application will open from the command-line ? ged Using Fedora 3 11th January 2008 03:44 PM
Log into Gnome from command line? bakechad Using Fedora 1 11th March 2007 01:56 AM


Current GMT-time: 10:39 (Sunday, 23-07-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat