Write and compile Unix exec


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Write and compile Unix exec
# 1  
Old 03-11-2006
Write and compile Unix exec

Does a unix compiler come standard on Darwin or do you have to DL one. What programing langauge do you write it in... I know on MS-Dos its a bash file that just uses dos commands, but I keep hearing C in this forum. how would I write and compile code for unix? just cat a new file, use unix commands, and then compile it? Thanks for your help
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to compile and run java in UNIX?

Hi Im using MobaXterm Unix on my windows XP.I want to compile java in unix.I have installed java to the following path C:\Program Files\Java\jdk1.7.0_09\bin In order to compile the java prog im typing the following command after entering into the bin directory: C:\Program... (2 Replies)
Discussion started by: ak3141
2 Replies

2. Shell Programming and Scripting

Script Variables Inquiry, Values Okay in Standalone Exec, No-Show in Cron Exec

I have the following bash script lines in a file named test.sh. #!/bin/bash # # Write Date to cron.log # echo "Begin SSI Load $(date +%d%b%y_%T)" # # Get the latest rates file for processing. # d=$(ls -tr /rms/data/ssi | grep -v "processed" | tail -n 1) filename=$d export filename... (3 Replies)
Discussion started by: ginowms
3 Replies

3. Shell Programming and Scripting

Unix Find with exec option.

All, I am using following find command to see all the files with specified pattern : find /exp/source -exec grep -li "SIT_MARKET" {} \; say , the /exp/source has n number of subdirectories and each subdirectory has its own directory tree. If this is the case I will get a result... (9 Replies)
Discussion started by: kanu_kanu
9 Replies

4. BSD

Backup Exec Agent for Unix

Hi I'd like to backup my freeBSD 7.0 using Backup Exec 12.0 Where to download the Backup Exec Agent for Linux/Unix? (4 Replies)
Discussion started by: ccc
4 Replies

5. UNIX for Dummies Questions & Answers

compile .exe, run in unix.

Hi all, I am using putty to access my school unix servers. I have recently downloaded a source file of a software in .tar format. I change the code of the program and compile it in VS8 and build an .exe file. 1) I copy the .exe file to my school account but I could not make it work. How... (2 Replies)
Discussion started by: hkullana
2 Replies

6. Programming

fork/exec clobbers write. I need ideas why...

On my *nix box, I have a telegram program. When I go like tel person "la\nla\nla\n" the person sees "la\nla\nla\n" However, when I have a program that forks and execs tel like: pid = fork(); if (pid < 0) { perror("fork failed"); exit(EXIT_FAILURE); } if (pid == 0) {... (7 Replies)
Discussion started by: frequency8
7 Replies

7. UNIX for Dummies Questions & Answers

Unable to compile the c programme in unix

Hi, My name is vreddy and I am learning c language now and written one programme on vi editor. how do I compile the programme please give me some advice and that would be helpfull for me. thanks vre (10 Replies)
Discussion started by: vasudeva
10 Replies

8. Shell Programming and Scripting

how to exec a procedure in Unix

I am trying to execute a procedure in Unix: Here is the deal: I have created a procedure, which works fine,it runs via a Shell script. Now I want to execute that Procedure to it can update all the rows... Currently have the following: shell script: sqlplus $ES_DB_STRING... (1 Reply)
Discussion started by: etravels
1 Replies

9. UNIX for Dummies Questions & Answers

how to compile in unix?

i am a new user of unix I saved an executable in fortran source code and now i have to compile this executable ( on unix). And i don't know to do it .what is the command? thank you (2 Replies)
Discussion started by: mono
2 Replies

10. UNIX for Dummies Questions & Answers

Help! - How do I compile C++ in UNIX Enviroment?

:confused: Hi, does anyone here know how to compile and run C++ in UNIX environment? I am so desperate! Any help is greatly appreciated. Thanks! (3 Replies)
Discussion started by: Kahuashi
3 Replies
Login or Register to Ask a Question
DH-EXEC-ILLITERATE(1)						      dh-exec						     DH-EXEC-ILLITERATE(1)

NAME
dh-exec-illiterate - Write literate debhelper config files! SYNOPSIS
#! /usr/bin/dh-exec --with=illiterate,subst,install Greetings, my dear reader, and welcome to the awesome world of literate programming! Today, we're going to explore how to write a debhelper install file in a literate manner. Trust me, it's going to be lots and lots of fun! So, what exactly are we trying to accomplish? We're going to try installing a file from `src/this-file' in the source tree, to a multi-arched path in the binary file. Lets say, to `/usr/lib/foo/${DEB_HOST_MULTIARCH}/'. Of course, ${DEB_HOST_MULTIARCH} is a variable, and will be expanded later in the dh-exec pipeline. It'll be something like x86_64-linux-gnu. Furthermore, we want to install all files from the 'usr/lib' directory under debian/tmp. If we were writing an illiteral install file, we'd write this rule as: usr/lib But the above description is much easier to understand, isn't it? We're almost finished! One thing left to do, is to install a script named `rename-me', to `/usr/share/foo/new-name' - we renamed it in the process! DESCRIPTION
The dh-exec-illiterate sub-command, unlike the others, does not serve any particular case, except to serve as a warning to all, that things can be taken to an extreme, even with dh-exec. On the other hand, it is just like the other sub-commands in that it must not be called directly, but through dh-exec(1), which automatically runs all available sub-commands if run bare; or explicitly with dh-exec --with=illiterate. It is a program that will translate its input from pretty much free-form text into something that resembles an install file. At least, that's the only supported output format for now. Everything that's not recognised, will be ignored, and not printed. The recognised constructs are: `source' ... `destination' The first string between a backtick and a single quote will be treated as the source file, the next such string will be the destination. If the destination ends with a slash, dh-exec-illiterate will consider it a directory, otherwise it will output a construct that dh-exec-install can recognise as a rename operation. 'source' A string, without whitespace, between two single quotes is treated as a source, whose destination is unspecified, and is left up to dh_install(1) to figure out. ENVIRONMENT
DH_EXEC_SCRIPTDIR Indicates which directory the command-specific scripts should be sought for. If not specified, scripts will be searched for in /usr/share/dh-exec/. FILES
$DH_EXEC_SCRIPTDIR/dh-exec-illiterate-* The various scripts for the higher-level program. SEE ALSO
debhelper(1), dh-exec(1) AUTHOR
dh-exec-illiterate is copyright (C) 2011-2012 by Gergely Nagy <algernon@madhouse-project.org>. 2012-05-03 DH-EXEC-ILLITERATE(1)