Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

command promt error HelP!


ghost's Avatar
0 0

im getting an error with my command box everytime i try and run a perl or python script it automatically closes the cmd is there a possibility that windows is doing this? the apps im running arent exactly considered "good" for the community running the standard cmd doesnt seem to affect it, only running the certain perl and python programs, any help/ideas would be much appreciated


ghost's Avatar
0 0

I'm pretty sure that if your scripts don't require user interaction, that once they are done executing, they will close.


ghost's Avatar
0 0

Feralas wrote: I'm pretty sure that if your scripts don't require user interaction, that once they are done executing, they will close.

Lol, idiot.

@OP: Open the scripts from your command prompt instead of double clicking them.


Futility's Avatar
:(
80 122

Now I'm still a novice, but I've been working on learning Python, and I'm pretty sure Feralas might have a point. By adding a raw_input at the end of the program, it will 'pause' it until you hit enter, or anything else, giving you enough time to see what the program does.

Now I'm not condoning double clicking the icons (running them through the command prompt is far superior, in my opinion), I just was excited that I knew something and decided to share it. It's a fun fact, if you will.


ghost's Avatar
0 0

Futility wrote: Now I'm still a novice, but I've been working on learning Python, and I'm pretty sure Feralas might have a point. By adding a raw_input at the end of the program, it will 'pause' it until you hit enter, or anything else, giving you enough time to see what the program does.

Now I'm not condoning double clicking the icons (running them through the command prompt is far superior, in my opinion), I just was excited that I knew something and decided to share it. It's a fun fact, if you will.

Heh. Bad habit is bad. Trust me, don't add a pause at the end of your programs.


ghost's Avatar
0 0

alright thanks guys:) i ran it inside cmd and it works now


ghost's Avatar
0 0

raymo39 wrote: alright thanks guys:) i ran it inside cmd and it works now

What script are you running and where did you download it?


fashizzlepop's Avatar
Member
0 0

Careful Spyware. You might not want to help unleash the power of a script a skiddie can find!