1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Getting Error: cannot execute binary file

Discussion in 'Linux and Unix' started by lastrachris, Feb 23, 2013.

Thread Status:
Not open for further replies.
  1. lastrachris

    lastrachris Thread Starter

    Joined:
    Jan 17, 2010
    Messages:
    354
    I'm trying to write just a really simple .sh file in Linux and it is giving me a lot of grief. My goal is it removes a folder, then cd into my Dropbox to copy another into a certain directory. When I run it as sh ./rollback.sh I get this in my console:

    $ sh ./rollback.sh
    : not foundsh: 1: ÿþ#!/bin/bash
    rm: cannot remove `.Adventure\r': No such file or directory


    OPERATION COMPLETE!!



    Here's the .sh file I am trying to use as well: https://www.dropbox.com/s/bph7lfzcb1e8sj6/rollback.sh
    The computer I'm trying to do this off is running CrunchBang Linux.
    Thanks for any help!
     
  2. saikee

    saikee

    Joined:
    Jun 11, 2004
    Messages:
    3,887
    This must be homework.

    A school student who does his/her own homework should be able to tell a script from a binary file.
     
  3. lastrachris

    lastrachris Thread Starter

    Joined:
    Jan 17, 2010
    Messages:
    354
    You're half right. I am a student, but this isn't homework. I'm not studying programming, or anything of that nature. This is more of just a side project. I decided I wanted to learn how to do some basic stuff and this is where I'm starting.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1090713

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice