Sponsored Content
Full Discussion: Almost -> Hello World!
Top Forums Programming Almost -> Hello World! Post 302450932 by teresaejunior on Saturday 4th of September 2010 09:36:30 PM
Old 09-04-2010
Hi, agama! Don't forsake me this time! I know I need to learn C, but what you said to me is like speaking in greek! I'm wrestling with a broken binary which is called by initramfs, I tried doing a gpkg-divert on the binary and calling it from a shell script. Something like:

Code:
#!/bin/sh

file=/tmp/filename
if [ -f $file ]; then
    rm -f $file
    exit 0
else
    $0.debian $@ # the name of the diverted binary
fi

Now, the binary is called in the beginning of boot, and it tells: /sbin/binary.debian: not found (while the binary is there...) The script works flawlessly, but fails when called by initramfs.

So I found that I should include this piece of code in the C source, but I don't understand a single piece of code in C and I'm in a big hurry.

I even feel like developing some tools in C (which is IMO the best language - powerful and lightweight), but it's too much for me in such a hurry.

Thanks!
 

7 More Discussions You Might Find Interesting

1. Solaris

hello world

just wanted to give salutations to all in here. i hope to contribute as much as i take. happy "unix-ing" :b: (0 Replies)
Discussion started by: JeepResQ
0 Replies

2. What is on Your Mind?

What The World Needs Now...

What does the world need now.... ??? Feel free to suggest new items to the poll .... we might add them :) (25 Replies)
Discussion started by: Neo
25 Replies

3. UNIX for Dummies Questions & Answers

What in the world does $$ mean?

If I type "echo $$" in to the command line it outputs some random number but it outputs the same one every time. What is this? (7 Replies)
Discussion started by: weexpectedthis
7 Replies

4. What is on Your Mind?

How Will the World End?

How will the world end (someday long into the future, we hope)? (68 Replies)
Discussion started by: Neo
68 Replies

5. Programming

Exact meaning of the "world" in "hello world"

Hello! I have a question to native English-speaking people. In the popular program's "hello world" greeting, what meaning the "world" has: "all", "everybody", "people", "friends" or "whole world", "planet", "Earth", "Universe"? In other words, to whom this greeting is addressed: to the... (14 Replies)
Discussion started by: Eugene Muzychen
14 Replies

6. What is on Your Mind?

Hello World!

Just wanna say "Hello World!" :) (6 Replies)
Discussion started by: ment0smintz
6 Replies

7. What is on Your Mind?

Mad World Remix of Moby Video (Are You Lost In The World Like Me)

This is an excellent video comment on modern society and the remix is good too: https://www.youtube.com/watch?v=5DU1B_XkyIk 5DU1B_XkyIk Watch the video above and post your comments. (3 Replies)
Discussion started by: Neo
3 Replies
MAVEN(1)							   User Commands							  MAVEN(1)

NAME
Maven - manual page for Maven Repo Helper version 1.7.1 SYNOPSIS
mh_lspoms [option]... <package> DESCRIPTION
Looks for all POM files defined in the source of the project. Where <package> is the name of the binary package, e.g. libcommons-lang-java. Default to the first binary found in the debian/control file OPTIONS
-h --help: show this text -V --version: show the version -p<package> --package=<package>: package to act on -f --force: force run even if the .poms files exist. Only maven.rules will be created, assuming that it did not exist before. -n --non-interactive: non interactive session, don't ask questions. -o --offline: don't ever connect to the internet, for Debian build compatibility. You need to execute it on the unpacked origial source tree, merged with the debian/ folder. It will create the file debian/<binary pack- age>.poms which contains all the POMs to deploy to the Maven repository and is used by mh_installpoms. The contents of debian/<binary package>.poms should be: * one POM file location per line, * optionally, the location is followed by the option --no-parent to indicate that if this POM inherits from a parent, the parent element will be removed. Maven Repo Helper version 1.7.1 May 2012 MAVEN(1)
All times are GMT -4. The time now is 05:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy