10-26-2019
Thanks, adding the current directory to Path did the trick.
This User Gave Thanks to ngabrani For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Why do basic unix commands such as "ls" not work in "BASH" mode??
I am frustrated!! (10 Replies)
Discussion started by: PixelLover
10 Replies
2. Shell Programming and Scripting
Hi! I have a simple question about using a for loop.
I'm trying to open up all the zip files in the currect directory with ark, but I am getting the error "bash: syntax error near unexpected token `for $i ; do ark $i ; done ;
I looked in the info pages for bash, but I can't seem to figure... (2 Replies)
Discussion started by: Orange Stripes
2 Replies
3. UNIX for Dummies Questions & Answers
Hello there
Been using Unix bash scripting for two days now so am very new to this. I am currently doing a project now and i'm basically making a noughts and crosses game (or tic tac toe).
I have created the board using an array. When I try and check to see if the array is empty using an If... (3 Replies)
Discussion started by: ChrisHoogie
3 Replies
4. Shell Programming and Scripting
*This is not homework I am new to UNIX and want to try this Monitoring a file demo*
*If this is the wrong forum please move it - im new to the forums*
$1 = the file to be monitored
$2 = the time for the file to sleep
If the file gets changed (using -nt) it will send my username mail saying... (2 Replies)
Discussion started by: Nolan-
2 Replies
5. Shell Programming and Scripting
Hi guys. Very new to this so apologies if this is ridiculously obvious, but I am not sure why this isn't working. I want to pull a file off an FTP server. I currently do it through windows, which is no problem, but I want to move everything to a Linux box I just installed. wget won't work as the... (4 Replies)
Discussion started by: majormajormajor
4 Replies
6. Shell Programming and Scripting
Hi, I am trying to make a script to manage log. I want to write the name of the .gz I moved and the date :
for i in `ls $replog/*.gz`
do
echo " $i "
`echo $i date +%d:%m:%Y`
`echo $datee `>> $replog/mrnet.log
mv $i /var/log/vieux-logs
done
I need to echo... (10 Replies)
Discussion started by: Dabless
10 Replies
7. Shell Programming and Scripting
Hi All,
I am trying to monitor CPU load of few processes, with the same name.
The output that I get from top is the following
28171 root 20 0 1089m 21m 3608 S 103 0.3 15:16.89 /opt/ppp//h264rtptranscoder.bin --videoPort=14504 --audioPort=14505
27589 root 20 0 1060m 23m... (3 Replies)
Discussion started by: liviusbr
3 Replies
8. Shell Programming and Scripting
Hi all,
i'm making some test on a data file. Imagine i have two columns inside it :
80377,20
80377,20
80379,19
80378,20
80380,20
80382,20
80381,21
Just to understand how can it works, imagine to subtract 100 to the number in the first column when the other one in the second... (4 Replies)
Discussion started by: Board27
4 Replies
9. UNIX for Beginners Questions & Answers
Hi everyone, first time visitor to these forums here.
Keeping a long story short I've been attempting to learn how to code in bash. I have VERY little previous experience with coding languages besides simply copying and pasting batch scripts for Windows. So, with that in mind I've followed a... (4 Replies)
Discussion started by: Meta
4 Replies
10. Fedora
My shell environment is bash and desktop environment is LXDE. When I use the up and down button on the keyboard to view the command history on bash shell, many times part of the command from the history remains on the line. For example
/home/milhan > ssh somedomain.org
/home/milhan > then when I... (5 Replies)
Discussion started by: milhan
5 Replies
LEARN ABOUT OSF1
cd_cptrec
cd_ptrec(3) Library Functions Manual cd_ptrec(3)
NAME
cd_ptrec, cd_cptrec - Reads the Path Table Record from the CD-ROM Path Table
LIBRARY
Rock Ridge and X/Open Extensions to the CDFS library (libcdrom.so, libcdrom.a)
SYNOPSIS
#include <sys/cdrom.h> int cd_ptrec ( char *path, struct iso9660_ptrec *ptrec ); int cd_cptrec ( char *path, char *addr
);
PARAMETERS
Points to a file or directory within the CD-ROM File System hierarchy.
Points to the iso9660_ptrec structure that holds the contents of the Path Table Record associated with the file or directory pointed
to by *path. The iso9660_ptrec structure is defined in cdfs/xcdr.h, an include file that is called into sys/cdrom.h
Specifies the address to which the function cd_cptrec copies the complete Path Table Record that is recorded on the CD-ROM.
DESCRIPTION
The cd_ptrec routine fills the *ptrec structure with the contents of the Path Table Record associated with the directory that is pointed to
by *path.
The cd_cptrec function copies the complete Path Table Record that is recorded on the CD-ROM to the address pointed to by *addr. The user
must allocate {CD_MAXPTRECL} bytes for the Path Table Record. The variable {CD_MAXPTRECL} is defined in cdfs/xcdr.h, an include file that
is called into sys/cdrom.h.
RETURN VALUES
If successful, the value zero is returned.
If unsuccessful, the integer -1 is returned and errno is set to indicate the error.
ERRORS
The function will fail if: Search permission is denied for a directory in *path or read permission is denied for the named directory. The
address of *path or *addr is invalid. A signal was caught during execution of the function. The argument *path points to a file or direc-
tory that is not within the CD-ROM file hierarchy. {OPEN_MAX} file descriptors are currently open in the calling process.
[Tru64 UNIX] Either the OPEN_MAX value or the per-process soft descriptor limit is checked. The length of the *path string exceeds
{PATH_MAX}, or a pathname component is longer than {NAME_MAX} while {_POSIX_NO_TRUNC} is in effect. The system file table is full.
A component of *path does not exist, or the *path argument points to an empty string. A component of the *path prefix is not a
directory. The CD-ROM is not in the drive, or a read error occurred.
RELATED INFORMATION
Files: cdfs/xcdr.h, sys/cdrom.h.
delim off
cd_ptrec(3)