Sponsored Content
Top Forums Shell Programming and Scripting Problems with simple script in cygwin Post 302343014 by blianna on Tuesday 11th of August 2009 10:07:07 AM
Old 08-11-2009
Does it work?!?!??!
Is it possible that "my" cygwin doesn't recognize the read command??
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

A beginner for cygwin simple question

the current pwd is: c:\cygwin\home\hui which command can go to c:\documents and setting\hui\my documents\hui\reply.txt (1 Reply)
Discussion started by: zhshqzyc
1 Replies

2. UNIX for Dummies Questions & Answers

tip: Simple script won't run in cygwin - vim editor involved

I ran into this issue and thanks to various postings in various forums, was able to figure out the solution but didn't see one posting that laid the whole issue out cleanly. So thought the following might help others ... ------------------------------------------------------------------------... (2 Replies)
Discussion started by: oxysep
2 Replies

3. Shell Programming and Scripting

Problems using join for simple database lookup

I am trying to get a script working that will perform a simple database lookup using the join command. Here are the two files that I am trying to join: % cat lookup1.txt Number_1 Other_data_a Number_5 Other_data_b Number_8 Other_data_c Number_10 Other_data_d % cat... (2 Replies)
Discussion started by: JasonHamm
2 Replies

4. UNIX for Dummies Questions & Answers

I'm having problems with a simple for loop on a newline

for i in `seq 1 10 ` ; do printf $i '\n'; done gives me this: 1234567891064mbarch ~ $ (output followed by bash prompt) :( I've tried so many ways to create a newline at the end. Does anyone have any ideas.. Thanks in advance. Sorry (7 Replies)
Discussion started by: 64mb
7 Replies

5. Windows & DOS: Issues & Discussions

Problems with batch files for Cygwin/rxvt

I'm trying to write batch scripts of the kind that start a Cygwin session in rxvt from the desktop, with the added feature that the session starts in a folder other than $HOME. I want to do this for two folders I use often. According to the manpage, rxvt has a "-cd" command. Therefore, at first... (4 Replies)
Discussion started by: SilversleevesX
4 Replies

6. Shell Programming and Scripting

Cygwin and simple script with if

I am having an issue with using cygwin (on Windows XP). My script errors on if -command. The script here works fine on Linux, but cygwin fails... #!/bin/sh if then echo "Test" fi The error -message: ./ShellTest.sh: line 4: syntax error near unexpected token `fi' ./ShellTest.sh:... (1 Reply)
Discussion started by: jussist
1 Replies

7. UNIX for Dummies Questions & Answers

Simple Problems to Solve!

Hi, I'm pretty poor at using UNIX but I'm learning. Please help me with these simple problems! Much appreciated! 1. I've changed my shell from bash to csh but I prefer bash. How do I change back? I've tried using chsh -s but it's not working! 2. I'm trying to download TopCat. I've done... (2 Replies)
Discussion started by: SimonWhite
2 Replies

8. Shell Programming and Scripting

simple problems in awk

Dear All, I have the following awk script. #!/bin/bash sh stdev.cmd data.file | awk '{print $2}' > out.data read d < out.data echo $d awk '{print $1,$2- $f}' new > newz The script runs "stdev.cmd" and output a file "out.data" and the value of the... (2 Replies)
Discussion started by: Yacob_123
2 Replies

9. UNIX for Dummies Questions & Answers

Im having cygwin problems on windooze 64

I have installed ruby with cygwin according to these inst: w w w .sproutcore.com/install_win/#tab=advanced-install but at the last command: gem install sproutcore I'm getting a bunch of errors: $ gem install sproutcore Fetching: rack-1.3.2.gem (100%) Fetching:... (0 Replies)
Discussion started by: Sssssssssssslep
0 Replies

10. Shell Programming and Scripting

Help making simple perl or bash script to create a simple matrix

Hello all! This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician. Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix: ... (16 Replies)
Discussion started by: torchij
16 Replies
mkbundle(mkbundle 1.0)													    mkbundle(mkbundle 1.0)

NAME
mkbundle, mkbundle2 - Creates a bundled executable. SYNOPSIS
mkbundle [options] assembly1 [assembly2 ...] DESCRIPTION
mkbundle generates an executable program that will contain static copies of the assemblies listed on the command line. By default only the assemblies specified in the command line will be included in the bundle. To automatically include all of the dependencies referenced, use the "--deps" command line option. Use mkbundle when you want the startup runtime to load the 1.0 profile, and use mkbundle2 when you want the startup runtime to load the 2.0 profile. For example, to create a bundle for hello world, use the following command: $ mkbundle -o hello hello.exe The above will pull hello.exe into a native program called "hello". Notice that the produced image still contains the CIL image and no precompilation is done. In addition, it is possible to control whether mkbundle should compile the resulting executable or not with the -c option. This is useful if you want to link additional libraries or control the generated output in more detail. For example, this could be used to link some libraries statically: $ mkbundle -c -o host.c -oo bundles.o --deps hello.exe $ cc host.c bundles.o /usr/lib/libmono.a -lc -lrt You may also use mkbundle to generate a bundle you can use when embedding the Mono runtime in a native application. In that case, use both the -c and --nomain options. The resulting host.c file will not have a main() function. Call mono_mkbundle_init() before initializing the JIT in your code so that the bundled assemblies are available to the embedded runtime. OPTIONS
-c Produce the stub file, do not compile the resulting stub. -o filename Places the output on `out'. If the flag -c is specified, this is the C host program. If not, this contains the resulting exe- cutable. -oo filename Specifies the name to be used for the helper object file that contains the bundle. -L path Adds the `path' do the search list for assemblies. The rules are the same as for the compiler -lib: or -L flags. Specifies that a machine.config file must be bundled as well. Typically this is $prefix/etc/mono/1.0/machine.config or $prefix/etc/mono/2.0/machine.config depending on the profile that you are using (1.0 or 2.0) --nodeps This is the default: mkbundle will only include the assemblies that were specified on the command line to reduce the size of the resulting image created. --deps This option will bundle all of the referenced assemblies for the assemblies listed on the command line option. This is useful to distribute a self-contained image. --keeptemp By default mkbundle will delete the temporary files that it uses to produce the bundle. This option keeps the file around. --machine-config FILE Uses the given FILE as the machine.config file for the generated application. --nomain With the -c option, generate the host stub without a main() function. --config-dir DIR When passed, DIR will be set for the MONO_CFG_DIR environment variable --static By default mkbundle dynamically links to mono and glib. This option causes it to statically link instead. Important: Since the Mono runtime is licensed under the LGPL, even if you use static you should transfer the component pieces of the mkbundle to your users so they are able to upgrade the Mono runtime on their own. If you want to use this for commercial licenses, you must obtain a proprietary license for Mono from mono@novell.com -z Compresses the assemblies before embedding. This results in smaller executable files, but increases startup time and requires zlib to be installed on the target system. WINDOWS
On Windows systems, it it necessary to have Unix-like toolchain to be installed for mkbundle to work. You can use cygwin's and install gcc, gcc-mingw and as packages. ENVIRONMENT VARIABLES
AS Assembler command. The default is "as". CC C compiler command. The default is "cc" under Linux and "gcc -mno-cygwin" under Windows. MONO_BUNDLED_OPTIONS Options to be passed to the bundled Mono runtime, separated by spaces. See the mono(1) manual page or run mono --help. FILES
This program will load referenced assemblies from the Mono assembly cache. BUGS
The option "--static" is not supported under Windows. Moreover, a full cygwin environment containing at least "gcc" and "as" is required for the build process. The generated executable does not depend on cygwin. MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for details. WEB SITE
Visit: http://www.mono-project.com for details SEE ALSO
mcs(1),mono(1),mono-config(5). mkbundle(mkbundle 1.0)
All times are GMT -4. The time now is 07:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy