Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 02-20-08   #1 (permalink)
Audiophile
 
F3t1sh's Avatar
 
intel ati

Join Date: Oct 2006
Location: Gatineau, Quebec
Posts: 881
Blog Entries: 4

Rep: 39 F3t1sh is acknowledged by some
Unique Rep: 28
Folding Team Rank: 656
Hardware Reviews: 1
Trader Rating: 0
Default Linux bash help

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.
__________________



31D8M4a1r1k



..:: My Quad ::..

System: lolz
CPU
Q6600 GO @ 3.7 1.48v (412*9)
Motherboard
Abit IP35 Pro
Memory
Crucial Ballistix 4x1GB
Graphics Card
HIS Radeon 3870x2
Hard Drive
RAID0 - Seagate Barracuda 160GB
Sound Card
AuzenTech Auzen Prelude
Power Supply
GameXStream 700W
Case
Ultra Aluminus
CPU cooling
Fuzion
OS
Vista HP 64Bit
Monitor
Samsung 225BW
F3t1sh is offline I fold for Overclock.net F3t1sh's Gallery   Reply With Quote
Old 02-20-08   #2 (permalink)
Mmmm! Toast!
 
hometoast's Avatar
 
intel nvidia

Join Date: Sep 2007
Location: Pennsylvania
Posts: 1,184

Rep: 92 hometoast is acknowledged by some
Unique Rep: 76
Folding Team Rank: 315
Trader Rating: 8
Default

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?

System: Muh Box
CPU
E6750 @ 3.2Ghz
Motherboard
DFI Blood Iron
Memory
4x1G GSkill HZs @960
Graphics Card
eVGA 8800GT 512 @675/950
Hard Drive
2xWD 320 AAKS Raid0 + 74G Raptor
Sound Card
on-board. (linux!=xfi)
Power Supply
CM Extreme Power 650W
Case
CM Centurion 5
CPU cooling
AC Freezer 7
OS
Vista Ultimate 64
Monitor
Samsung 204BW
hometoast is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 02-20-08   #3 (permalink)
Audiophile
 
F3t1sh's Avatar
 
intel ati

Join Date: Oct 2006
Location: Gatineau, Quebec
Posts: 881
Blog Entries: 4

Rep: 39 F3t1sh is acknowledged by some
Unique Rep: 28
Folding Team Rank: 656
Hardware Reviews: 1
Trader Rating: 0
Default

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.
__________________



31D8M4a1r1k



..:: My Quad ::..

System: lolz
CPU
Q6600 GO @ 3.7 1.48v (412*9)
Motherboard
Abit IP35 Pro
Memory
Crucial Ballistix 4x1GB
Graphics Card
HIS Radeon 3870x2
Hard Drive
RAID0 - Seagate Barracuda 160GB
Sound Card
AuzenTech Auzen Prelude
Power Supply
GameXStream 700W
Case
Ultra Aluminus
CPU cooling
Fuzion
OS
Vista HP 64Bit
Monitor
Samsung 225BW

Last edited by F3t1sh : 02-20-08 at 04:08 PM.
F3t1sh is offline I fold for Overclock.net F3t1sh's Gallery   Reply With Quote
Old 02-20-08   #4 (permalink)
Mmmm! Toast!
 
hometoast's Avatar
 
intel nvidia

Join Date: Sep 2007
Location: Pennsylvania
Posts: 1,184

Rep: 92 hometoast is acknowledged by some
Unique Rep: 76
Folding Team Rank: 315
Trader Rating: 8
Default

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.

System: Muh Box
CPU
E6750 @ 3.2Ghz
Motherboard
DFI Blood Iron
Memory
4x1G GSkill HZs @960
Graphics Card
eVGA 8800GT 512 @675/950
Hard Drive
2xWD 320 AAKS Raid0 + 74G Raptor
Sound Card
on-board. (linux!=xfi)
Power Supply
CM Extreme Power 650W
Case
CM Centurion 5
CPU cooling
AC Freezer 7
OS
Vista Ultimate 64
Monitor
Samsung 204BW
hometoast is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 02-20-08   #5 (permalink)
Audiophile
 
F3t1sh's Avatar
 
intel ati

Join Date: Oct 2006
Location: Gatineau, Quebec
Posts: 881
Blog Entries: 4

Rep: 39 F3t1sh is acknowledged by some
Unique Rep: 28
Folding Team Rank: 656
Hardware Reviews: 1
Trader Rating: 0
Default

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.
__________________



31D8M4a1r1k



..:: My Quad ::..

System: lolz
CPU
Q6600 GO @ 3.7 1.48v (412*9)
Motherboard
Abit IP35 Pro
Memory
Crucial Ballistix 4x1GB
Graphics Card
HIS Radeon 3870x2
Hard Drive
RAID0 - Seagate Barracuda 160GB
Sound Card
AuzenTech Auzen Prelude
Power Supply
GameXStream 700W
Case
Ultra Aluminus
CPU cooling
Fuzion
OS
Vista HP 64Bit
Monitor
Samsung 225BW
F3t1sh is offline I fold for Overclock.net F3t1sh's Gallery   Reply With Quote
Old 02-20-08   #6 (permalink)
Audiophile
 
F3t1sh's Avatar
 
intel ati

Join Date: Oct 2006
Location: Gatineau, Quebec
Posts: 881
Blog Entries: 4

Rep: 39 F3t1sh is acknowledged by some
Unique Rep: 28
Folding Team Rank: 656
Hardware Reviews: 1
Trader Rating: 0
Default

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?
__________________



31D8M4a1r1k



..:: My Quad ::..

System: lolz
CPU
Q6600 GO @ 3.7 1.48v (412*9)
Motherboard
Abit IP35 Pro
Memory
Crucial Ballistix 4x1GB
Graphics Card
HIS Radeon 3870x2
Hard Drive
RAID0 - Seagate Barracuda 160GB
Sound Card
AuzenTech Auzen Prelude
Power Supply
GameXStream 700W
Case
Ultra Aluminus
CPU cooling
Fuzion
OS
Vista HP 64Bit
Monitor
Samsung 225BW
F3t1sh is offline I fold for Overclock.net F3t1sh's Gallery   Reply With Quote
Old 02-20-08   #7 (permalink)
Mmmm! Toast!
 
hometoast's Avatar
 
intel nvidia

Join Date: Sep 2007
Location: Pennsylvania
Posts: 1,184

Rep: 92 hometoast is acknowledged by some
Unique Rep: 76
Folding Team Rank: 315
Trader Rating: 8
Default

you also didn't say you were running the FAH client.

this didn't help? http://fahwiki.net/index.php/Running...lient_on_Linux

System: Muh Box
CPU
E6750 @ 3.2Ghz
Motherboard
DFI Blood Iron
Memory
4x1G GSkill HZs @960
Graphics Card
eVGA 8800GT 512 @675/950
Hard Drive
2xWD 320 AAKS Raid0 + 74G Raptor
Sound Card
on-board. (linux!=xfi)
Power Supply
CM Extreme Power 650W
Case
CM Centurion 5
CPU cooling
AC Freezer 7
OS
Vista Ultimate 64
Monitor
Samsung 204BW
hometoast is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 04:08 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.19114 seconds with 8 queries