Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 24
how to make this script executable for windows.... #!/bin/bash # destroy computer until [ "$lalalalala" ]; do echo "destroying computer ....please wait" clear echo "destroying computer ....please wait" clear echo ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549

    how to make...


    how to make this script executable for windows....

    #!/bin/bash

    # destroy computer

    until [ "$lalalalala" ]; do
    echo "destroying computer ....please wait"
    clear
    echo "destroying computer ....please wait"
    clear
    echo "destroying computer ....please wait"
    clear
    echo "hahahahahahahahahahahah"
    clear
    echo "destroying computer ....please wait"
    clear
    echo "destroying computer ....please wait"
    clear
    echo "hohohohohohohohoh!#$%&/()?=)(/&%$E#W!#$%&/()=)(/&%$#!#$%&/()=)(/&%$#$%&/()"
    clear
    echo "destroying computer ....please wait"
    clear
    echo "fsdpkhjnpeoitjngrdkjhbčptn"
    clear
    echo "destroying computer ....please wait"
    clear
    echo "destroying computer ....please wait"
    clear
    echo "destroying computer ....please wait"
    clear
    echo "destroying computer ....please wait"
    clear
    done

  2. #2
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    You just need to start the computer, connect it to the internet and wait a few minutes ...

    If you really want the script, a .bat should do it
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  3. #3
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    You would need to translate it into a Batch script. Unfortunately, since Batch and Bash are completely different, and Batch is Windows-only, it is unlikely you'll get much help here.

    Try Googling for some Batch tutorials.

  4. #4
    Linux Newbie X.Cyclop's Avatar
    Join Date
    May 2006
    Location
    Israel
    Posts
    143
    Quote Originally Posted by Cabhan
    You would need to translate it into a Batch script. Unfortunately, since Batch and Bash are completely different, and Batch is Windows-only, it is unlikely you'll get much help here.
    Unafortunately? If Bash would be equal to Batch, it would suck too much.
    "Don't think about the work, think about the benefit"

    Leonardo Juszkiewicz

  5. #5
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Quote Originally Posted by X.Cyclop
    Unafortunately? If Bash would be equal to Batch, it would suck too much.
    Unfortunate for Batch, I mean .

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    i dont understand what is the need of this kinda script.... infinited loop....

    <=== { casper } ===>
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    hi devils_casper
    well here in slovenia that would be a good joke to sent files like that.but i needed that script executable for windows coz here 99.9% of people newer heard for diferent os like MS Windows.

    thank you guys for your help
    about batch...no way in not gonna lose time with suff for c**py windows...

  8. #8
    Linux User
    Join Date
    Aug 2006
    Posts
    458
    you could code what you want in a cross platform programming language, like perl/python/java etc.
    Here's a Python script that does what you want

    Code:
    import sys,os
    if sys.platform == "win32":
         clear = "cls"
    elif sys.platform == "linux":
         clear = "clear"
    
    def printdestroy():
         print "destroying computer ....please wait"
         os.system(clear)
    
    while True:
         printdestroy()
         print "hahahahahahahahahahahah"
         os.system(clear)
         .....
         ......

  9. #9
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    thank you ghostdog74

  10. #10
    Linux Newbie X.Cyclop's Avatar
    Join Date
    May 2006
    Location
    Israel
    Posts
    143
    Quote Originally Posted by Cabhan
    Unfortunate for Batch, I mean .
    Oh, ok.

    you could code what you want in a cross platform programming language, like perl/python/java etc.
    Here's a Python script that does what you want
    I think Java would be a nice choice, because anyone has JVM installed on his machine.
    With Perl/Python you'll need an interpreter.
    "Don't think about the work, think about the benefit"

    Leonardo Juszkiewicz

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •