Sponsored Content
Full Discussion: problem with directory
Top Forums UNIX for Dummies Questions & Answers problem with directory Post 302099401 by ravi raj kumar on Tuesday 12th of December 2006 12:51:35 AM
Old 12-12-2006
Question problem with directory

Smilie Smilie hi gurus,
I have created a directory called "Proj" in the root directory.
I then created a file called "dboper.prg" in that directory.
I have given file permissions and directory permissions .

But when executing the file dboper.prg ($ dboper.prg) from being in the proj directory,i am getting the error "command not found".

When i specify the complete path of the file then only its getting executed.
(like $ /proj/dboper.prg).

Why do i need to specify the complete path instead of just the file name to execute that file?

any help pls



cheers RRK
 

10 More Discussions You Might Find Interesting

1. Solaris

home directory problem

I have solaris 9 installed across 2 disks. disk 1 / s0 swap s1 /usr s6 /var s3 /home s7 disk2 /swapfile (spare space for use with swap) s1 /opt s5 /export/home s7 When I create a new user using solaris Management... (1 Reply)
Discussion started by: finster
1 Replies

2. Shell Programming and Scripting

problem with directory commands

Hello... I am having a slight problem when I run the basic directory command from a shell script... i used the foll code:: $ cat a pwd date cd .. all the command of the script except the " cd .. " command are working...I also tried cd <dir_path> through diff means...including giving... (1 Reply)
Discussion started by: tej.buch
1 Replies

3. UNIX Desktop Questions & Answers

Problem Removing a Directory !!!

Hi All, When i remove a directory , the following error message comes : rm: cannot determine if this is an ancestor of the current working directory Is it something to do with the permissisons ? The path is /PBAMLftp/incoming/misc/July06 - (where i need to remove the July06 directory) And... (1 Reply)
Discussion started by: gauravsachan
1 Replies

4. Shell Programming and Scripting

Directory inside directory problem

hii, I have to create a directory under the same directory with the date +%a extension like this BackupLocation=$BackupLocation/$BackupLocation$(date +%w) but the problem is --- if backuplocation is abc/dfg then accroding to the above statement it would be abc/dfg/abc/dfg5 but i... (6 Replies)
Discussion started by: namishtiwari
6 Replies

5. Shell Programming and Scripting

Directory Creation problem

Hiiii, here is my script-- BackupLocation="$OPTARG" if ]; then echo "Either option l or L should be given to $Programname" echo "$Usage" echo "$Programname is terminated" ... (1 Reply)
Discussion started by: namishtiwari
1 Replies

6. Linux

Problem about Fedora directory permission

Problem about Fedora directory permission,can anyone help me? In fedora,I have two ordinary user named user1&user2 in different groups,when I logined user1 and created a dir named test/ in '/home/ user1/',and do 'chmod 750 test',so when 'ls -l',it appears 'drwxr- x---' for 'test',but when I... (3 Replies)
Discussion started by: zhouq3132
3 Replies

7. UNIX for Dummies Questions & Answers

Problem with spaces in directory path

Hi Gurus, I have a requirement. cat /usdd/Sample/"NDDF Plus DB"/"NDDF Descriptive and Pricing"/"NDDF BASICS 3.0"/"Pricing"/1.txt | sed 's/*|*/|/g' | sed 's/^*//'| sed 's/^*//; s/*$//' > temp.txt In unix prompt the above command is reading the file 1.txt and I am... (1 Reply)
Discussion started by: prabhutkl
1 Replies

8. UNIX for Dummies Questions & Answers

Problem with Restricting Directory in Apache

Hello, I want to restrict access to our Subversion repositories to only our internal network. I have a virtual host directive setup in Apache for the IP and port 443. When I put the following: <Directory "/var/www/svn/"> Order allow,deny AllowOverride None Allow from 10.5.10.0/24 Allow... (1 Reply)
Discussion started by: mojoman
1 Replies

9. Shell Programming and Scripting

Naming of directory problem

hi all suppose in particular directory i have lots of directory supoose 201009 201010 201011 201012 now by mistake i have rename all these directory as 201009.bk 201010.bk 201011.bk 201012.bk now how can i revert the changes back pls help me regarding this (2 Replies)
Discussion started by: aishsimplesweet
2 Replies

10. Shell Programming and Scripting

Problem with if statement, cannot get to right directory

I have several scripts , which are calling one. That script, depends of arguments, processing daily, weekly and monthly files. After process daily, I started process weekly exec ${LOCL_WORKING_DIR}/sftp_ondemand.sh /export/data/mbsesb/config/ondemand.cfg /export/data/mbsesb/config/filename.lst... (11 Replies)
Discussion started by: digioleg54
11 Replies
getprdfent(3)						     Library Functions Manual						     getprdfent(3)

NAME
getprdfent(), getprdfnam(), setprdfent(), endprdfent(), putprdfnam() - manipulate system default database entry for a trusted system SYNOPSIS
DESCRIPTION
and each returns a pointer to an object with the following structure containing the broken-out fields of a line in the system default data- base. Each line in the database contains a pr_default structure, declared in the header file: struct system_default_fields { time_t fd_inactivity_timeout ; char fd_boot_authenticate ; } ; struct system_default_flags { unsigned short fg_inactivity_timeout:1, fg_boot_authenticate:1, } ; struct pr_default { char dd_name[20] ; char dg_name ; struct pr_field prd ; struct pr_flag prg ; struct t_field tcd ; struct t_flag tcg ; struct dev_field devd ; struct dev_flag devg ; struct system_default_fields sfld ; struct system_default_flags sflg ; } ; Currently there is only one entry in the system default database referenced by name The System Default database contains default values for all parameters in the Protected Password, Terminal Control, and Device Assignment databases, as well as configurable system-wide parameters. The fields from the other databases are described in the corresponding manual entries. fd_inactivity_timeout is the number of seconds until a session is terminated on trusted systems. fd_boot_authenticate is a Boolean flag that indicates whether an authorized user must authenticate before the system begins operation. returns a pointer to the first pr_default structure in the database when first called. Thereafter, it returns a pointer to the next pr_default structure in the database so that successive calls can be used to search the database (only one entry is supported). searches from the beginning of the file until a default entry matching name is found, and returns a pointer to the particular structure in which it was found. If an end-of-file or an error is encountered on reading, these functions return a NULL pointer. Currently, all pro- grams access the default database by calling (the entry name is A call to has the effect of rewinding the default control file to allow repeated searches. can be called to close the database when pro- cessing is complete. puts a new or replaced default control entry pr with key name into the database. If the prg.fd_name field is 0, the requested entry is deleted from the system default database. locks the database for all update operations and performs an after the update or failed attempt. Notes The value returned by and refers to a structure that is overwritten by calls to these routines. To retrieve an entry, modify it, and replace it in the database, copy the entry using structure assignment and supply the modified buffer to Programs using these routines must be compiled with APPLICATION USAGE
In a multithreaded application, these routines are safe to be called only from one dedicated thread. These routines are not POSIX.1c async-cancel safe nor async-signal safe. RETURN VALUE
and return NULL pointers on or error. returns 0 if it cannot add or update the entry. WARNINGS
Do not delete the system default entry. HP-UX 11i Version 3 is the last release to support trusted systems functionality. FILES
System Defaults database SEE ALSO
authcap(4), default(4), getprpwent(3), getprtcent(3), getdvagent(3). TO BE OBSOLETED getprdfent(3)
All times are GMT -4. The time now is 05:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy