Sh Or .bat For Mac

13.03.2020by admin

Need help with compiling sh. or bat. files on MAC, need advice which program i need to use to do that? It need to look something like this.

So i need a software to compile something like this?::: javac -cp././OUTPUT././OUTPUT/unrenamed.jar;././OUTPUT/sign/.java././OUTPUT/.java.java javac -cp././BotClasses././OUTPUT././OUTPUT/unrenamed.jar./LIB/;.java javac -cp./LIB././BotClasses././OUTPUT././OUTPUT/unrenamed.jar;.java java -noverify -Xmx500m -cp./OUTPUT./OUTPUT/unrenamed.jar./BotClasses./LIB; Bot%1??????????? Or more to the point,.sh files are shell scripts which don't need to be compiled into an executable file - as a script they are simply interpreted, line by line, by the shell.

A.bat file is a 'batch' file which has roots in MS-DOS. Generik's instructions show you how to change permissions to allow the.sh file to be executable, and then how to actually run the script (note that in Unix you need to explicitly specify that the file you want is in the current directory, by using the './' prefix on your filename.

Although slightly inconvenient, and easily circumventable, it is good practice for system security). Hope that helps. Sh and unix executable files I am running OSX. I need to execute a unix executable file and then run a shell script. I've copied the exec file 'transform' and.sh file into the directory in which I want to run it. Then from X11 I go to that directory and type./transform but receive the error message: tcsh:./transform: Exec format error. Binary file not executable.

This file was created with a f90 compiler at work (unix) and then copied to my mac. Do I need to recompile it? If so how do I do that on mac?

Read reviews, compare customer ratings, see screenshots, and learn more about Google Authenticator. Download Google Authenticator and enjoy it on your. BACKUP YOUR SECRET! Don't wait until it's too late! This extension is NOT a Google official product, so it cannot sync with your Google Authenticator data on. Oct 15, 2014 - This would essentially give you the Google Authenticator on a desktop. Here is my suggestion (works on Linux, Mac, Android), this one is for. Google authenticator for mac.

Sh Or .bat For Mac Pro

Then I need to run a shell script from within the same directory. Do I need to type /bin/sh.sh?? Help needed, thanks. Fortran compiler for Mac Thank you for the helpful responses. Indeed I already had g77 and f77 but neither seem to compile the f90 file.

Maybe this is obvious. My command statement and error response was as follows: athena: rockhopp% g77 /Desktop/transfer.f90 -o /Desktop/transform /usr/bin/ld: /Users/rockhopper/Desktop/transfer.f90 bad magic number (not a Mach-O file) collect2: ld returned 1 exit status Should I be doiong something different here? Alternatively, on Fink, there exists a g95, will this work as a compiler for an f90 program? Thank you for the helpful responses. Indeed I already had g77 and f77 but neither seem to compile the f90 file. Maybe this is obvious. My command statement and error response was as follows: athena: rockhopp% g77 /Desktop/transfer.f90 -o /Desktop/transform /usr/bin/ld: /Users/rockhopper/Desktop/transfer.f90 bad magic number (not a Mach-O file) collect2: ld returned 1 exit status Should I be doiong something different here?

Alternatively, on Fink, there exists a g95, will this work as a compiler for an f90 program?

The DOS.BAT file was an attempt to bring to MS-DOS something like the idea of the UNIX script. In general, UNIX permits you to make a text file with commands in it and run it by simply flagging the text file as executable (rather than give it a specific suffix).

Sh or .bat for mac os

This is how OS X does it. However, OS X adds the feature that if you give the file the suffix '.command', Finder will run Terminal.app to execute it (similar to how BAT files work in Windows). Unlike MS-DOS, however, UNIX (and OS X) permits you to specify what interpreter is used for the script.

An interpreter is a program that reads in text from a file and does something with it. This is how languages like PERL and Python work. In UNIX, you can specify which interpreter to use by making the first line in the text file one that begins with '#!' Followed by the path to the interpreter. For example, if your text file contains a script writtein the in the PERL language, it would look like this: #!/usr/bin/perl print 'Hello World '. The UNIX shell is an intepreter too: #!/bin/sh echo Hello World For your script to run from the UNIX command line (Terminal.app), you need to set the executable flag of the file. For example, if your script is called 'myscript', then you'd type: chmod u+x myscript.

Sh Or .bat For Mac

And you can execute it like so:./myscript In fact, there are several different scripting languages provided with OS X for you to use: PERL, Python, Ruby, PHP, Bash, etc. Each has it's own strengths and complexities. Is there a good site or book that I could get to understand a little more. Take a look at: Simply 'chmod +x myscript' (without the u) what does this do? Take a look at MODES in the man page.

Just type man chmod in Terminal: The symbolic mode is described by the following grammar: mode::= clause , clause. clause::= who. action. action action::= op perm. who::= a u g o op::= + - = perm::= r s t w x X u g o The who symbols ``u', ``g', and ``o' specify the user, group, and other parts of the mode bits, respectively. The who symbol ``a' is equivalent to ``ugo'.

Simply 'chmod +x myscript' (without the u) what does this do? See 'man chmod' Unix permissions apply to the 'User', members of the user's group, and others (everyone not the user and not in the user's group). This permissions classifications were created back in the time-sharing days when a single computer is shared with dozens or hundreds of users. So back to your question, 'chmod u+x' applies execute permissions to the User (owner) of the file. Just specifying 'chmod +x' gives execute permission to the User, the Group, and others (everyone else). Again, this is described in 'man chmod'.

Sh or .bat for mac pro

Is there a good site or book that I could get to understand a little more. For the most part, this is generic Unix stuff. Books about the Bash shell would cover most of this stuff. There have been other posts in this forum giving suggestions for books and web sites with beginning Unix and Mac OS X Unix info. Personally, I'm a bit old school, and I prefer the Kernighan and Pike 'The Unix Programming Environment', which covers basic shell usage, shell scripting, and works its way up to C programming, which you could ignore. It packs a lot of Unix information into a small book.

I have also been asked to build a web site, is any of this information useful for that? Most unlikely.

One difficulty is that 'build a web site' has so many different meanings. I got involved during the early days of the web and I still prefer to hand craft my own HTML and perfect my own JavaScript.

I dislike content management systems. As you can see I have an Xserve but I also still run my first server (Quid Pro Quo). OS X comes with Apache which is one of the most popular web servers. I am unsure how much you know about servers and HTML but if you are an absolute beginner you could enable Apache on your Mac and try putting a simple HTML page on it. I have some (very old with a few dead links) web pages which may be useful: Unless you have money to spare it is worth remembering that OS X can do most/all that OS X Server does although OS X Server may be less tedious to set up. Apple Footer.

This site contains user submitted content, comments and opinions and is for informational purposes only. Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Apple can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the.