New Posts  All Forums:Forum Nav:

Linux bash help

post #1 of 7
Thread Starter 
Well I have a few lines of code that i'd like to execute whenever i double click it but I don't know what extension to use and how to do it, can someone help me. I also want it to not be dependent on using some coding in the terminal to get it started, only a double click thing.
post #2 of 7
I don't follow how you'd catch a double click in a terminal.

do you mean you want to write a bash script which fires whenever you double click? double click your desktop, a window, anything?
RAWR
(13 items)
 
Home Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
i7-4790k msi z97 gaming 7 gtx 760 4gb 32GB GSkill  
Hard DriveHard DriveCoolingOS
Kingston HyperX 3K 120GB SSD Hitachi 2TB Cooler Master Hyper 212+ Windows 8.1 Pro 
MonitorKeyboardPowerCase
Vizio M492-b2 Logitech Wireless  Corsair HX620 NZXT Phantom White 
Mouse
Logitech Wireless 
  hide details  
Reply
RAWR
(13 items)
 
Home Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
i7-4790k msi z97 gaming 7 gtx 760 4gb 32GB GSkill  
Hard DriveHard DriveCoolingOS
Kingston HyperX 3K 120GB SSD Hitachi 2TB Cooler Master Hyper 212+ Windows 8.1 Pro 
MonitorKeyboardPowerCase
Vizio M492-b2 Logitech Wireless  Corsair HX620 NZXT Phantom White 
Mouse
Logitech Wireless 
  hide details  
Reply
post #3 of 7
Thread Starter 
no i want to make a file with some terminal codes so that when i double click my created file, it opens terminal and runs the code i want it to without me having to do so.
post #4 of 7
ooh!
ok no problem.

create the file...

Code:
#!/bin/bash
xterm &
chmod u+x filename
or chmod 755 filename

double click from your filemanager and yo'ure good to go.
RAWR
(13 items)
 
Home Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
i7-4790k msi z97 gaming 7 gtx 760 4gb 32GB GSkill  
Hard DriveHard DriveCoolingOS
Kingston HyperX 3K 120GB SSD Hitachi 2TB Cooler Master Hyper 212+ Windows 8.1 Pro 
MonitorKeyboardPowerCase
Vizio M492-b2 Logitech Wireless  Corsair HX620 NZXT Phantom White 
Mouse
Logitech Wireless 
  hide details  
Reply
RAWR
(13 items)
 
Home Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
i7-4790k msi z97 gaming 7 gtx 760 4gb 32GB GSkill  
Hard DriveHard DriveCoolingOS
Kingston HyperX 3K 120GB SSD Hitachi 2TB Cooler Master Hyper 212+ Windows 8.1 Pro 
MonitorKeyboardPowerCase
Vizio M492-b2 Logitech Wireless  Corsair HX620 NZXT Phantom White 
Mouse
Logitech Wireless 
  hide details  
Reply
post #5 of 7
Thread Starter 
I do that and nothing happens.
Im using it to start my folding client. so the commands im using are:
Code:
cd ~/home/penguin/folding/FAH/
chmod +x FAH504-Linux.exe
./FAH504-Linux.exe
and it as:
Code:
#!/bin/bash
cd ~/home/penguin/folding/FAH/
chmod +x FAH504-Linux.exe
./FAH504-Linux.exe
but it's still not working.
post #6 of 7
Thread Starter 
Quote:
Originally Posted by hometoast View Post
double click from your filemanager and yo'ure good to go.
Oh, I can't use it to start the client off my desktop?
post #7 of 7
you also didn't say you were running the FAH client.

this didn't help? http://fahwiki.net/index.php/Running...lient_on_Linux
RAWR
(13 items)
 
Home Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
i7-4790k msi z97 gaming 7 gtx 760 4gb 32GB GSkill  
Hard DriveHard DriveCoolingOS
Kingston HyperX 3K 120GB SSD Hitachi 2TB Cooler Master Hyper 212+ Windows 8.1 Pro 
MonitorKeyboardPowerCase
Vizio M492-b2 Logitech Wireless  Corsair HX620 NZXT Phantom White 
Mouse
Logitech Wireless 
  hide details  
Reply
RAWR
(13 items)
 
Home Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
i7-4790k msi z97 gaming 7 gtx 760 4gb 32GB GSkill  
Hard DriveHard DriveCoolingOS
Kingston HyperX 3K 120GB SSD Hitachi 2TB Cooler Master Hyper 212+ Windows 8.1 Pro 
MonitorKeyboardPowerCase
Vizio M492-b2 Logitech Wireless  Corsair HX620 NZXT Phantom White 
Mouse
Logitech Wireless 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming