Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-15-2003, 10:57 PM   #1
snowball179
Confirmed User
 
Join Date: Dec 2002
Posts: 261
How to execute a script in C?

I need to execute a file named toplist (there is no extension) on my web server. I think that it is in C.

How do I execute it?

Thanks!
snowball179 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2003, 11:08 PM   #2
snowball179
Confirmed User
 
Join Date: Dec 2002
Posts: 261
I also need to execute a file named toplist.sh

Anyone knows how?
snowball179 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2003, 11:14 PM   #3
lustbin
Registered User
 
Join Date: Feb 2003
Location: minnesota
Posts: 83
system("command line here");

http://www.cs.utah.edu/dept/old/texi...14.html#SEC213

for further info and alternate methods
__________________
cube life got me down
icq# 21315507
lustbin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2003, 11:15 PM   #4
TrafficTeam
So Fucking Banned
 
Join Date: Oct 2002
Location: Germany
Posts: 106
got SSH access to your box?


Rgds,JOKER
TrafficTeam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2003, 11:19 PM   #5
snowball179
Confirmed User
 
Join Date: Dec 2002
Posts: 261
Quote:
Originally posted by TrafficTeam
got SSH access to your box?


Rgds,JOKER
yes
snowball179 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2003, 11:26 PM   #6
TrafficTeam
So Fucking Banned
 
Join Date: Oct 2002
Location: Germany
Posts: 106
then make sure its executeable,you have the rights to execute it and type (inside the folder where the script is)


./scriptname


for the .sh script either:

./scriptname.sh

or:

sh scriptname.sh



Rgds,JOKER

for any further questions pls hit me up on ICQ,I'm not refreshing every 5 minutes here...
TrafficTeam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2003, 11:29 PM   #7
lustbin
Registered User
 
Join Date: Feb 2003
Location: minnesota
Posts: 83
hmm no more drinking while answering questions

chmod 2 tha res-q
__________________
cube life got me down
icq# 21315507
lustbin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-16-2003, 06:04 AM   #8
res
Confirmed User
 
Join Date: Nov 2002
Location: Europe
Posts: 1,118
For C scripts:
1) gcc -o target source.c
2) ./target

For Shell scripts:
1) Add header in your shell script: #!/bin/sh
2) chmod 755 filename.sh
3) filename.sh
res is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.