7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I wrote this code, questions follow
#! /bin/bash -f
# Purpose - to show how if syntax is used within an awk
clear;
ls -l;
echo "This will print out the first two columns of the inputted file in this directory";
echo "Enter filename found in this directory";
read input;
... (11 Replies)
Discussion started by: Seth
11 Replies
2. Red Hat
Heyas
I'm trying to build a live image using livecd-tools (livecd-creator), but this time i'd like to reuse the /root/anaconda-ks.cfg.
System: Fedora 3.16.7-200.fc20.x86_64
The building starts, the download begins, but it fails with networking.
MAIN.ks
# Based on: fedora-live-base.ks... (0 Replies)
Discussion started by: sea
0 Replies
3. Shell Programming and Scripting
Hi,
I am trying to check if two input files exist before the rest of the scripts is run. Following is the code that I have but it gives me syntax error.
if
then
echo "File not found"
else
echo "File found"
fi (3 Replies)
Discussion started by: nua7
3 Replies
4. Red Hat
i have automated installation of my proprietory linux.. using PXE. it all goes well. but after complete installation, while using the admin interface.. i am facing display problems.
is it due to package dependencies.?
or i have to write post script in anaconda-ks.cfg file???
can some one tell... (10 Replies)
Discussion started by: jayesh_j
10 Replies
5. Shell Programming and Scripting
hi; i have one configuration file(configuration.cfg),where contents are below..
filename = charge.cfg
sectionname =
networkid = 1
retrytimes = 2
-------------
--------------
sectionname =
networkid = 1
retrytimes = 2
filename = xyz.cfg
------------------
-----------------
There is... (7 Replies)
Discussion started by: suryanarayan
7 Replies
6. UNIX for Advanced & Expert Users
i create ks.cfg for automatic install for centos 5.2 it's work perfectky for cutom install linux package.
and i want to install another program with shell scripts (assume test.tar include in DVD linux custom package)** single dvd include linux os and test.tar
sample
#!/bin/bash... (1 Reply)
Discussion started by: slackman
1 Replies
7. Programming
Hi Folks,
I am trying to write a small compiler for syntax checking in C programs. I would like to attach a Context Free Grammar(CFC) to it.
Does any one know as to how I should associate or map the Grammar with the C program????
A quick help would help me a lot......
Thanks,
Nisha (4 Replies)
Discussion started by: Nisha
4 Replies
pthread_getsequence_np(3) Library Functions Manual pthread_getsequence_np(3)
NAME
pthread_getsequence_np - Obtains the unique identifier for the specified thread.
LIBRARY
DECthreads POSIX 1003.1c Library (libpthread.so)
SYNOPSIS
#include <pthread.h>
unsigned long pthread_getsequence_np(
pthread_t thread);
STANDARDS
None
PARAMETERS
Thread object whose sequence number is to be obtained.
DESCRIPTION
This routine obtains and returns the DECthreads thread sequence number for the thread identified by the thread object specified in the
thread argument.
The thread sequence number provides a unique identifier for each existing thread. A thread's thread sequence number is never reused while
the thread exists, but can be reused after the thread terminates. The debugger interfaces use this sequence number to identify each thread
in commands and in display output.
The result of calling this routine is undefined if the thread argument does not specify a valid thread object.
RETURN VALUES
No errors are returned. This routine returns the DECthreads thread sequence number for the thread identified by the thread object speci-
fied in the thread argument. The result of calling this routine is undefined if the thread argument does not specify a valid thread.
ERRORS
None
RELATED INFORMATION
Functions: pthread_create(3), pthread_self(3)
Manuals: Guide to DECthreads and Programmer's Guide
delim off
pthread_getsequence_np(3)