• Welcome to Valhalla Legends Archive.
 

chmod

Started by jigsaw, February 22, 2004, 05:25 PM

Previous topic - Next topic

iago

Quote from: jigsaw on February 22, 2004, 05:25 PM
I am god.

bash% chmod +e jigsaw.
Jigsaw has been executed
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Hitmen


iago

Quote from: Hitmen on February 22, 2004, 11:55 PM
rm -r *

whoops.

You removed every non-folder in the current directory?

rm -rf /
is much worse :P
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Meh

Quote from: iago on February 22, 2004, 06:51 PM
chmod +e jigsaw.
Jigsaw has been executed
Is that the code to execute a program under Linux by any chance?

K

Quote from: The-Rabid-Lord on February 23, 2004, 11:47 AM
Quote from: iago on February 22, 2004, 06:51 PM
chmod +e jigsaw.
Jigsaw has been executed
Is that the code to execute a program under Linux by any chance?

That's the shell command to make a file executable.  Otherwise:

[jl@x. dhcp.colorado.edu] ./a.out
./a.out: Permission Denied.

Hitmen

Quote from: iago on February 23, 2004, 08:20 AM
Quote from: Hitmen on February 22, 2004, 11:55 PM
rm -r *

whoops.

You removed every non-folder in the current directory?

rm -rf /
is much worse :P
I was in a particularly non-destructive mood, for once.

Zakath

Quote from: K on February 23, 2004, 03:11 PM
That's the shell command to make a file executable.  Otherwise:

[jl@x. dhcp.colorado.edu] ./a.out
./a.out: Permission Denied.


a.out? Ewww...

g++ -o plz
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

iago

Quote from: Zakath on February 24, 2004, 11:06 AM
Quote from: K on February 23, 2004, 03:11 PM
That's the shell command to make a file executable.  Otherwise:

[jl@x. dhcp.colorado.edu] ./a.out
./a.out: Permission Denied.


a.out? Ewww...

g++ -o plz

I always use a.out for testing, unless I'm using a makefile/shellscript.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


K

#9
Quote from: Zakath on February 24, 2004, 11:06 AM
a.out? Ewww...

I know, it was an example  ::)


FLAGS = -Wall
SRC = main.cc rb.cc
HEADS = rb.h
OBJS = main.o  rb.o
EXE = hw2

$(EXE): $(OBJS) $(HEADS)
   g++ $(OBJS) -o $(EXE)

$(OBJS): $(HEADS)
   g++ -c $(SRC) $(FLAGS)

run: $(EXE)
   ./$(EXE)

clean:
   rm -f $(OBJS) $(EXE)

Adron

Quote from: iago on February 24, 2004, 11:50 AM
I always use a.out for testing, unless I'm using a makefile/shellscript.

If you have a file named "program.cc", then "make program" should compile program.cc and then link that into "program" for you. No need to ever use a.out?

iago

To compile, I type "gcc -Wall program.c"
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Adron

Ah. Maybe you should set -Wall in your environment?

iago

Typing 5 characters is ok, and it's a habit.  Plus, I use many different computers and I don't want to forget when I use my school's/work's/etc.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Adron

Hmm, I suppose.

It's 7 more characters though :p


gcc -Wall program.c
make program