LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Run Daemon in linux

Posted 01-13-2006 at 07:20 AM by bogoda

HI ,

I am new to Red Hat 9.

I want to know how can i create a Deamon program to run in linux when system boot up.

I run the following program.

But no out put.

I want set it as Daemon.


#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>...
Member
Posted in Uncategorized
Views 2496 Comments 2 bogoda is offline
Old

First Post

Posted 01-12-2006 at 04:12 PM by nar321

This is a test
LQ Newbie
Posted in Uncategorized
Views 1594 Comments 0 nar321 is offline
Old

Using Windows MBR to boot Linux ( or BSD or Solaris)

Posted 01-12-2006 at 08:13 AM by saikee

One line summary – Put Grub in a data-only Fat primary partition and switch on its booting flag. Windows MBR will faithfully load Grub into memory. Grub can then boot all systems installed in the PC

(A) Introduction

Windows MBR does not have a target to boot. It only searches from the 4 primary partitions of the specified bootable hard disk and loads the first one that has the booting flag switched on. One can make use of this behaviour to let it boot up GNU/Grub,...
Senior Member
Posted in Uncategorized
Views 5607 Comments 2 saikee is offline
Old
Rating: 3 votes, 4.00 average.

Are you a Linux Newbie? Fell off the Windows Ship Without a Paddle?

Posted 01-12-2006 at 05:05 AM by carl0ski

i just thought i'd make a quick list to aid in quickly understanding and feeling comfortable using Linux.
Since my favourite Distro is Mandriva , and i find it quite easy to learn.
I recommend it.


Recommended Software

KDE equivilent to the icons and Startbar in Windows.

Konquerer Equivilant to Internet Explorer both can be used to browse the web and manage files on your Hardrive. Even rips audio CDs 'audiocd://'.
...
Member
Posted in Uncategorized
Views 3954 Comments 0 carl0ski is offline
Old

Bash input validation

Posted 01-11-2006 at 08:28 PM by unSpawn

Takes argument and stops when character outside restricted set is found.
Don't know how much slower, didn't run any timing tests with or without yet.

Code:
val_str() {
        declare -r str_allow="1234567890-_.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ "
        declare -r str_len="128"; str=( "$1" ); if [ -z "${str}" -o "${#str}" -gt "${str_len}" ]; then return 1; fi
        charLim=$[${#str}-1];
...
Moderator
Posted in Uncategorized
Views 3731 Comments 1 unSpawn is offline

  



All times are GMT -5. The time now is 11:09 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration