Sponsored Content
Top Forums Shell Programming and Scripting Reading file names from a file and executing the relative file from shell script Post 101333 by anushilrai on Tuesday 7th of March 2006 08:50:58 AM
Old 03-07-2006
Actually i want to read a name from a list file, append the file extension with that name and then execute that file to create object in database, as the file contains script to create object in database, kindly help me out accordingly. Your help would be very useful for me. plzzzzzzzzz
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

executing scripts by reading names from a file

file.txt contains ------------------ sat1 1300 sat2 2400 sat3 sat4 500 I need to write a shell script that will output like the below #output sat1.ksh 1300 sat2.ksh 2400 sat3.ksh sat4.ksh 500 my try ------- #!/bin/ksh for i in `cat file.txt` (3 Replies)
Discussion started by: konark
3 Replies

2. Shell Programming and Scripting

Dealing with spaces in file names in a shell script

Hi, What's the best way to find all files under a directory - including ones with space - in order to apply a command to each of them. For instance I want get a list of files under a directory and generate a checksum for each file. Here's the csh script: #!/bin/csh set files = `find $1... (5 Replies)
Discussion started by: same1290
5 Replies

3. Shell Programming and Scripting

getting : No such file or directory while executing a shell script

Hi all, I am getting : No such file or directory while executing a shell script. But i have that corresponding file in the corresponding path. It also have executable rights. Please help me out in this Thanks in advance. Ananthi.U (7 Replies)
Discussion started by: ananthi_ku
7 Replies

4. Shell Programming and Scripting

Renaming file names in a shell script

I want to write a shell script that will rename all the file names to today's date attached to it.. so for example i have a file names like file1.sales.20081201.txt.c zbrs.salestxtn.20091101.txt.inn then it will rename both the files with todays date to it so the file names get changed... (1 Reply)
Discussion started by: rudoraj
1 Replies

5. Shell Programming and Scripting

want only file names (not whole path) in shell script

hi i wrote following script, #!/usr/bin/sh for index in `ls /tmp/common/*.txt` do echo "$index" done here index is giving full path but in my program i want only file names (not along with whole path) Eg. if in /tmp/common files are a.txt and b.txt den out should be a.txt b.txt ... (6 Replies)
Discussion started by: crackthehit007
6 Replies

6. Shell Programming and Scripting

Creating a Continuous File Reading-Executing Shell Script

I need to write something that will read and execute all the files(Mainly executable scripts) inside one or more folders; in other words, a continuous chain with a break when finished. I'm new to shell and need syntax help. I'm on Ubuntu 12.10-Gnome btw. Here are some main highlights I think... (2 Replies)
Discussion started by: linuxlololol
2 Replies

7. UNIX for Dummies Questions & Answers

Reading XML file and print the values in the text file using Linux shell script

hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file <sequence> <Filename>aldorzum.doc</Filename> <DivisionCode>US</DivisionCode> <ContentType>Template</ContentType> <ProductCode>VIMZIM</ProductCode> </sequence>... (1 Reply)
Discussion started by: sravanreddy
1 Replies

8. SCO

Long file names within shell script

I am downloading a zip file that contain files that are very long. I am trying to process them, but cannot. I can move the files from one directory to another at the shell prompt, but not within a shell script, I get a stat error. The files look somewhat like this; ... (5 Replies)
Discussion started by: trolley
5 Replies

9. Shell Programming and Scripting

ksh Script, Reading A File, Grepping A File Contents In Another File

So I'm stumped. First... APOLOGIES... my work is offline in an office that has zero internet connectivity, as required by our client. If need be, I could print out my script attempts and retype them here. But on the off chance... here goes. I have a text file (file_source) of terms, each line... (3 Replies)
Discussion started by: Brusimm
3 Replies
CONFDB_OBJECT_CREATE(3) 			    Corosync Cluster Engine Programmer's Manual 			   CONFDB_OBJECT_CREATE(3)

NAME
confdb_object_create - Create a new object in the Configuration Database SYNOPSIS
#include <corosync/confdb.h> confdb_error_t confdb_object_create(confdb_handle_t handle, unsigned int parent_object_handle, void *object_name , int object_name_len , unsignedint *object_handle ); DESCRIPTION
The confdb_object_create function create a new object in the configuration database. Objects may contain other sub-objects or keys with values. On success the handle of the new object is returned in object_handle. This value should be used to refer to the object in future, eg when retrieving sub-keys or if the object is destroyed. parent_object_handle is the handle of the object that is the parent of the new object. This can be OBJECT_PARENT_HANDLE if the new object is to be a child of the top-level object. Object names are not required to be unique in the database. If you call confdb_object_create twice with the same parameters you will create two different objects with the same name but distinct object handles. You can iterate through similarly name objects using the confdb_object_find call. RETURN VALUE
This call returns the CONFDB_OK value if successful, otherwise an error is returned. ERRORS
The errors are undocumented. SEE ALSO
confdb_initialize(3), confdb_finalize(3), confdb_fd_get(3), confdb_dispatch(3), confdb_object_create(3), confdb_object_destroy(3), confdb_object_parent_get(3), confdb_key_create(3), confdb_key_delete(3), confdb_key_get(3), confdb_key_replace(3), confdb_object_find_start(3), confdb_object_find(3), confdb_object_iter_start(3), confdb_object_iter(3), confdb_key_iter_start(3), confdb_key_iter(3), corosync Man Page 2008-04-17 CONFDB_OBJECT_CREATE(3)
All times are GMT -4. The time now is 02:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy