.cmd .bat for linux ubuntu?

Discussion in 'Computer Software and Operating Systems' started by coolness, May 13, 2011.

  1. coolness
    OP

    coolness PSN: Dutch_DarkLord

    Banned
    2,016
    13
    Jun 14, 2009
    Netherlands
    Rotterdam Bitches!!
    is there a program that let run .cmd and .bat files
    because i want to use my Javabot and it have run.cmd to start
    or must i change the extension of the file to let it run in the Terminal?
     
  2. SifJar

    SifJar Not a pirate

    Member
    6,022
    891
    Apr 4, 2009
    Linux uses BASH so you'd need a .SH script AFAIK. Completely different syntax. Just use terminal to run the app directly if its a Linux program.
     
  3. Frederica Bernkastel

    Frederica Bernkastel WebPerf and PWA advocate; @antoligy on Twitter

    Member
    3,150
    758
    Jan 31, 2008
    Hinamizawa
    batch files are for use with the windows terminal.
    Instead, you can use shell scripts (any extension, although .sh is typically used) which are different to batch scripts in a good way.

    can you paste the contents of the batch file here? I'm sure I can rewrite it for use with a generic distro.

    EDIT: it probably is a one-liner.
     
  4. coolness
    OP

    coolness PSN: Dutch_DarkLord

    Banned
    2,016
    13
    Jun 14, 2009
    Netherlands
    Rotterdam Bitches!!
    i while pm you the link with the run.cmd file
    because it contains a msn account/password
    EDIT: its a msnbot thats why it have the run.cmd
    its orginally brians msnbot but first it steals passwords i coded the bot and removed the password thing [​IMG]
    EDIT EDIT: Antoligy helped me [​IMG]
     
  5. Scorpei

    Scorpei GBAtemp Maniac

    Member
    1,295
    2
    Aug 21, 2006
    Netherlands
    Anyone have any ideas how I automatically pass a yes to a command inside a shell script?
    I have a mount -t davfs running which uses https and thus uses encryption over SSL. However the mount requires a valid certificate OR it asks for confirmation to accept this 'unknown' certificate (asking a y or an N). I have already tried to get the certificate of the server in davfs2's config however I seem to be unable to get it to register.

    I've tried to do
    root@scorpei~:/backup
     
  6. doyama

    doyama GBAtemp Maniac

    Member
    1,288
    3
    Nov 30, 2006
    United States
     
  7. Nollog

    Nollog GBAtemp Addict

    Member
    2,703
    472
    Oct 10, 2008
    apt-get install wine1.3