Sponsored Content
Top Forums Shell Programming and Scripting -bash: ./p4: /bin/ksh^M: bad interpreter: No such file or directory Post 302972025 by cokedude on Thursday 28th of April 2016 05:30:30 PM
Old 04-28-2016
Quote:
Originally Posted by Don Cragun
Try:
Code:
cp p4 _p4 && tr -d '\r' < _p4 > p4 && rm _p4

Yes that fixed one problem. Now it can't seem to find my files.

Code:
$ ls -l
total 1364
-rwxr-xr-x. 1 n00930622 student  94563 Apr 23 23:55 a.out
-rwxrwxrwx. 1 n00930622 student     19 Apr 28 17:13 boo
-rw-r--r--. 1 n00930622 student     89 Apr 24 00:58 cookies
-rw-r--r--. 1 n00930622 student   1622 Dec  6 23:49 doc
-rw-r--r--. 1 n00930622 student    148 Apr 23 16:14 textfile
-rw-r--r--. 1 n00930622 student 597061 Apr 23 23:56 fn
-rwxr-xr-x. 1 n00930622 student  94563 Apr 28 16:56 goodmain
-rw-r--r--. 1 n00930622 student 427993 Apr 23 23:47 main.c
-rw-r--r--. 1 n00930622 student 145256 Apr 24 00:40 main.o
-rw-r--r--. 1 n00930622 student     72 Apr 28 16:53 makefile
-rwxrwxrwx. 1 n00930622 student     46 Apr 28 17:24 p4

Code:
$ ./p4 textfile
./p4: line 2: goodmain: not found

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/bin/sh: /usr/bin/vi: No such file or directory when doing crontab

I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies

2. Shell Programming and Scripting

/bin/sh: bad interpreter: Permission denied

today i started the LFS book (version 4.0). Basically i am using slackware 9.0 to try and install a new linux completely from source on another partition. Now i took the book's recommendations and created a user called lfs so i wouldn't have to do the stuff as root, and i have got the new LFS... (4 Replies)
Discussion started by: Calum
4 Replies

3. Shell Programming and Scripting

#!/usr/bin/ksh Command Interpreter in a sh script

Hi, I have a developer that is trying to start a script with sh "scriptname". In the script, he is specifying #!/usr/bin/ksh as the command interpreter. For some reason sh is ignoring the #!/usr/bin/ksh. We are running Solaris 8. Does anyone have any ideas what could be causing this? Here... (3 Replies)
Discussion started by: ckeith79
3 Replies

4. UNIX for Dummies Questions & Answers

bad interpreter: Permission denied

I am writing an expect script but am getting a bad interpreter: permission denied error. I don't think the error has anything to do with expect itself, I think I am missing something in how I start the file. For instance, when I run the file under the expect directory it works: cd... (7 Replies)
Discussion started by: earnstaf
7 Replies

5. Ubuntu

How to resolve bad interpreter error

Hi, Iam trying to run a gmake command and have the latest version of Gnu in my redhat linux system. I need to execute the following steps; ---> chmod +x utils/* ---> ./utils/AllCodeManagerFix ---> gmake LINUX Iam able to do the chmod command but when I run the second command I get... (2 Replies)
Discussion started by: viji19812001
2 Replies

6. Shell Programming and Scripting

Perl - bad interpreter: No such file or directory

Here is a puzzler. To start, let me say that I've done a search on this issue and it is definitely not related to line endings being encoded in windows returns. I get this error when I run SOME perl scripts. I have a script called hello_world.pl. I do $cp hello_world.pl new_hello_world.pl... (0 Replies)
Discussion started by: mjmtaiwan
0 Replies

7. Shell Programming and Scripting

bad interpreter: Permission denied

Hi I am running a script: #!bin/bash set -x echo"select * from celldatamap;" || sqlcsv -v -h -s ',' -d MTNSA11G -u datasafe -p datasafe > andrea.csv When I run my script ./tablescript.sh I get the following error: $ ./tablescript.sh (3 Replies)
Discussion started by: ladyAnne
3 Replies

8. Shell Programming and Scripting

bad interpreter when running script

Hi All, I'm not confortable in writing script, can someone can help me, when I run that script below i found this error code : -bash: ./script.sh: /bin/sh.: bad interpreter: Here is the script for i in * x=${i##*.} z=$(perl -e 'print time;') t=$(echo $z-$x|bc)... (12 Replies)
Discussion started by: bzb23
12 Replies

9. Shell Programming and Scripting

Bad Interpreter

Hi. My name is Caleb (a.k.a RagingNinja) form the whited00r forums. (Whited00r makes custom firmware for iOS devices). I have been learning and creating simple shells scripts. I have been recently using VIM for Windows or using VirtualBox to run the UBUNTU OS within VirtualBox to create my shell... (2 Replies)
Discussion started by: RagingNinja
2 Replies

10. Shell Programming and Scripting

#!/bin/bash cannot find file or directory

Hello, When i run a bash script on ubuntu i get this message.. #!/bin/bash cannot find file or directory... Can anibody help me with this, because the file actually exists.... Is there any extra configuration to be made? (5 Replies)
Discussion started by: oliveiraum
5 Replies
AMC-NOTE(1)						       Auto Multiple Choice						       AMC-NOTE(1)

NAME
AMC-note - computes marks after scans data capture for AMC multiple choice exams. SYNOPSIS
auto-multiple-choice note --data project-data-dir [--seuil threshold] [--grain granularity] [--arrondi rounding] [--notemin min] [--notemax max] [--no-plafond | --plafond] DESCRIPTION
The AMC-note.pl command computes marks for all students from the scoring strategy extracted from the LaTeX source file by AMC-prepare(1) and from the data capture reports made by AMC-analyse(1). --data project-data-dir gives the directory where data files are (see for example AMC-meptex(1)). --seuil threshold gives the black ratio threshold (see AMC-analyse(1)) for deciding whether a box is ticked or not. --grain granularity --arrondi rounding ask marks to be rounded to a multiple of granularity. If rounding is 'i', rounding is done from below (as with floor(3)). If rounding is 'n', rounding is done to the nearest multiple of granularity. If rounding is 's', rounding is done from above (as with ceil(3)). For example, with options "--grain 0.25 --arrondi s", mark 6.285 is rounded to 6.5. --notemin min with this option, all marks below min will be replaced by min. --notemax max gives the mark to associate to a sheet where all answers are correct. If not used, marks are not scaled. --plafond with this option, all marks above max will be replaced by max. --debug file.log gives a file to fill with debugging information. --postcorrect-student s --postcorrect-copy c requests port-correction from the completed answer sheet identified by student and copy numbers. In post-correction mode, correct answers are not extracted from the LaTeX source file, but taken from the answers given on this sheet. AUTHORS
Alexis Bienvenue <paamc@passoire.fr> Main author Jean Berard Translation from French Georges Khaznadar Translation from French COPYRIGHT
Copyright (C) 2008-2012 Alexis Bienvenue This document can be used according to the terms of the GNU General Public License, version 2 or later. Auto Multiple Choice 1.1.1 06/19/2012 AMC-NOTE(1)
All times are GMT -4. The time now is 01:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy