Sponsored Content
Top Forums Programming creating object files in a specific directory Post 98985 by linuxpenguin on Monday 13th of February 2006 05:05:36 PM
Old 02-13-2006
you can also use the -o flag for the object files to create them wherever you want them
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

extract tar files without creating directory

I received a tar file of a directory with 50,000 files in it. Is it possible to extract the files in the tar file without first creating the directory? ie. Doing tar -xvf filename.tar extracts as follows: x directory/file1.txt x directory/file2.txt . . . I would like to avoid... (4 Replies)
Discussion started by: here2learn
4 Replies

2. Shell Programming and Scripting

Creating date directory and moving files into that directory

I have list of files named file_username_051208_025233.log. Here 051208 is the date and 025233 is the time.I have to run thousands of files daily.I want to put all the files depending on the date of running into a date directory.Suppose if we run files today they should put into 05:Dec:08... (3 Replies)
Discussion started by: ravi030
3 Replies

3. Shell Programming and Scripting

Creating large number of files of specific size

Hi I am new to shell scripting.I want to create a batch file which creates a desired number of files with a specific size say 1MB each to consume space.How can i go about it using for loop /any other loop condition using shell script? Thanks (3 Replies)
Discussion started by: swatideswal
3 Replies

4. Shell Programming and Scripting

Creating CLOB object in unix

Hi All, I have a big file (basically .log file) want to store in oracle database. Please help me in preparing CLOB object in unix. The log file is stored in some location on unix file server, prepare clob of that file and store in DB. Any sample code or link Thanks Rajesh (1 Reply)
Discussion started by: rajeshorpu
1 Replies

5. Shell Programming and Scripting

Delete all files if another files in the same directory has a matching occurence of a specific word

Hello, I have several files in a specific directory. A specific string in one file can occur in another files. If this string is in other files. Then all the files in which this string occured should be deleted and only 1 file should remain with the string. Example. file1 ShortName "Blue... (2 Replies)
Discussion started by: premier_de
2 Replies

6. UNIX for Dummies Questions & Answers

Creating a file to count how many files in the directory

hello there i want to creat a file that count how many files i have in the directory. for this i use the command find . -type f | wc -l > 1In1.myfile the problem with this command is that it not update after i add a new file in the directory. Anyone got any ideas how i can... (5 Replies)
Discussion started by: AntiPin
5 Replies

7. UNIX for Dummies Questions & Answers

Creating a list of files in directory?

Hi All, I would like to do a loop on all the files with extension .out in my directory this files should be sorted alphabetically. Then I need to assign to each of them a progressive ID of three digits (maybe in HEX format?). First I tried to list manually the files as ARRAY=( A-001.out ... (5 Replies)
Discussion started by: f_o_555
5 Replies

8. UNIX for Dummies Questions & Answers

Creating directory with specific size?

Hello world, I just learnt we can create a directory with custom size in a Linux server (say Redhat). Is it true? I'm asking because the only data (I can think of) a directory's inode holds is the files and 'sub-dir's. How can a new empty directory be of some required size? :wall: PS : In... (2 Replies)
Discussion started by: satish51392111
2 Replies

9. UNIX for Dummies Questions & Answers

help creating gzip of directory files via cron

**BTW- very new to scripting** I have created a shell script to gzip the public_html files on our website. I have tested this script on another directory on our site and it worked, but when I replaced the directory with the public_html directory it failed. I am executing this script via a... (7 Replies)
Discussion started by: alblue
7 Replies

10. Shell Programming and Scripting

Delete all files if another files in the same directory has a matching occurrence of a specific word

he following are the files available in my directory RSK_123_20141113_031500.txt RSK_123_20141113_081500.txt RSK_126_20141113_041500.txt RSK_126_20141113_081800.txt RSK_128_20141113_091600.txt Here, "RSK" is file prefix and 123 is a code name and rest is just timestamp of the file when its... (7 Replies)
Discussion started by: kridhick
7 Replies
shm_open(2)							System Calls Manual						       shm_open(2)

NAME
shm_open - create/open a shared memory object SYNOPSIS
DESCRIPTION
The system call establishes a connection between a shared memory object and a file descriptor. It creates an open file description that corresponds to the shared memory object and returns a file descriptor that refers to that open file description. This file descriptor (which is the lowest numbered file descriptor not currently open for that process) is used by other functions to refer to that shared mem- ory object. The name argument points to the shared memory object name, and must conform to the general construction rules for a pathname. The oflag argument is the bitwise inclusive OR of the flags listed under and (these flags are defined in the header file The new file descriptor has the flag set, and consequently does not remain open across system calls. Read-Write Flags The value of oflag must be composed by taking the inclusive OR of exactly one of the following flags: Open for read access only. Open for read and write access. General Flags Any combination of the following flags may also be used in setting the value of oflag. If the shared memory object exists, this flag will have no effect, except as noted under below. Otherwise the shared memory object is created; the shared memory object's user ID is set to the effective user ID of the process; the shared memory object's group ID is set to the effective group ID of the process. The shared memory object's permission bits is set to the value of the mode argument except those set in the file mode creation mask of the process. The new shared memory object will have a size of zero. If and are set in oflag and the named shared memory object exists, will fail. The flag is ignored if is not set in oflag. If the shared memory object exists, and it is successfully opened for reading and writing set in oflag), the object will be truncated to zero length. The mode and owner shall remain unchanged by this function call. RETURN VALUE
returns the following values: n Successful completion. n is the lowest numbered unused file descriptor for the process. Failure. is set to indicate the error. ERRORS
If fails, is set to one of the following values: The shared memory object exists and the permissions specified by oflag are denied, or the shared memory object does not exist and permission to create the it is denied, or is speci- fied and write permission is denied. The and are set in oflag and the named shared memory object already exists. The operation was interrupted by a signal. The operation is not supported for the given name. Too many file descriptors are currently in use by this process. The length of the name string exceeds or the length of a (pathname) component of the name string exceeds while is in effect. Too many shared memory objects are currently open in the system. The flag is not set in oflag and the named shared memory object does not exist. There are insufficient resources for the creation of the new shared memory object. is not supported by the implementation. SEE ALSO
shm_unlink(2), close(2), mmap(2), munmap(2), privileges(5). STANDARDS CONFORMANCE
shm_open(2)
All times are GMT -4. The time now is 08:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy