Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Forums
Blogs
Articles
Groups
Galleries
Member List
Calendar
Home
Forum
Simply Business
Fucking Around & Business Discussion
How to execute a script in C?
How to execute a script in C?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
snowball179
Confirmed User
Join Date:
Dec 2002
Posts:
261
Share
Post
#1
How to execute a script in C?
02-15-2003, 08:57 PM
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
Confirmed User
Join Date:
Dec 2002
Posts:
261
Share
Post
#2
02-15-2003, 09:08 PM
I also need to execute a file named toplist.sh
Anyone knows how?
Comment
Post
Cancel
lustbin
Registered User
Join Date:
Feb 2003
Posts:
83
Share
Post
#3
02-15-2003, 09:14 PM
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
Comment
Post
Cancel
TrafficTeam
So Fucking Banned
Join Date:
Oct 2002
Posts:
106
Share
Post
#4
02-15-2003, 09:15 PM
got SSH access to your box?
Rgds,JOKER
Comment
Post
Cancel
snowball179
Confirmed User
Join Date:
Dec 2002
Posts:
261
Share
Post
#5
02-15-2003, 09:19 PM
Originally posted by TrafficTeam
got SSH access to your box?
Rgds,JOKER
yes
Comment
Post
Cancel
TrafficTeam
So Fucking Banned
Join Date:
Oct 2002
Posts:
106
Share
Post
#6
02-15-2003, 09:26 PM
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...
Comment
Post
Cancel
lustbin
Registered User
Join Date:
Feb 2003
Posts:
83
Share
Post
#7
02-15-2003, 09:29 PM
hmm no more drinking while answering questions
chmod 2 tha res-q
cube life got me down
icq# 21315507
Comment
Post
Cancel
res
Confirmed User
Join Date:
Nov 2002
Posts:
1118
Share
Post
#8
02-16-2003, 04:04 AM
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
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎
☕
Comment