07-09-2009
It might be choking on those relative paths, stopping when it tries to check for ls in a directory that does not exist relative to the current location. Is it possible to make them all absolute paths?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello
On Debian Lenny, I first ran apt-get install git-core and then removed it to install from source. The trouble is that when I typed git --version, I am get:
-bash: /usr/bin/git: No such file or directory
of course, git is now in /usr/local/bin
I don't understand why since... (1 Reply)
Discussion started by: JCR
1 Replies
2. UNIX for Advanced & Expert Users
Is there something which is an alternative to the variable LD_LIBRARY_PATH?
The behaviour of this variable is that the path specified here will be checked before checking usual paths. But I want to have some folders checked for shared libraries after the usual paths. i.e usual paths have to... (3 Replies)
Discussion started by: bbala
3 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I logged in to the unix solaris with my user name and then I again logged in with the sudo bash -l command
now when I do echo $PATH
It shows me => /usr/bin:/usr/local/bin:/usr/bin/usr/sbin:/usr/ucb:/usr/local/bin
How do i find out where is this file located for setting the... (3 Replies)
Discussion started by: siddhans
3 Replies
4. Shell Programming and Scripting
This is weirdly a linux question I suppose.
Im having a problem with this code the file path is fine if I don't use the ~ and put in the user /Users/tempuser/....
This will be installed on more than one computer and changing the plist for every install is going to become tedious.
Is there... (1 Reply)
Discussion started by: digitalviking
1 Replies
5. UNIX for Dummies Questions & Answers
Hi guys,
In Windows, whenever I want a execute a program using just a relative path on the command prompt, I simply edit the 'Path' variable and append my parent directory.
Is there something like this available in Unix? I have a binary for Virtualbox called VBoxManage that I want to execute... (6 Replies)
Discussion started by: silverdust
6 Replies
6. UNIX for Dummies Questions & Answers
I use the following command to print the current directory above the command prompt
set prompt="`exec pwd`\n$USER@`hostname -s` %B: % > "
The output is something like this
<current path>
$USER@hostname >
But when I try to CD to any other directory and press the return key, the... (6 Replies)
Discussion started by: aelhosiny
6 Replies
7. Shell Programming and Scripting
Greetings Experts,
I need to pass a parameter to ksh and the value is windows path eg: sh abc.txt C:\Users\chill3chee\Desktop
No matter I try with \ delimiter, still could not get this exact value assigned to the shell variable which was checked with echo. Tried with using... (2 Replies)
Discussion started by: chill3chee
2 Replies
8. UNIX for Beginners Questions & Answers
Hello,
I am on a Mac and trying to clean up some monthly files with a very simple SED:
sed '3,10d;/<ACROSS>/,$d' input.txt > output.txt
(from the input, delete lines 3 - 10; then delete from the line containing <ACROSS> to the end of the file)
then output to output.txt
Even when I try... (2 Replies)
Discussion started by: verbatim
2 Replies
9. AIX
Hello,
I have encountered the issue on my AIX 6.1. As you can see below, the hdisk1 & hdisk8 are not recognized by the system
/ > lspv
hdisk0 00fa6d1288c820aa rootvg active
hdisk1 00fa6d1288c8213c None
hdisk2 ... (9 Replies)
Discussion started by: Phat
9 Replies
10. Linux
Hi All,
Is there anyone encounter filenaming with Ñ or ñ reading?.
Is the any other way to handle enye both redhat environment and java?
We look in the log and founfout reading pathname or filename with enye Ñ, look like MONTA?O instead of MONTAÑO.
We tried to transfer files from my windows... (4 Replies)
Discussion started by: lxdorney
4 Replies
LEARN ABOUT DEBIAN
latexml::util::pathname
LaTeXML::Util::Pathname(3pm) User Contributed Perl Documentation LaTeXML::Util::Pathname(3pm)
NAME
"LaTeXML::Util::Pathname" - portable pathname and file-system utilities
DESCRIPTION
This module combines the functionality File::Spec and File::Basename to give a consistent set of filename utilties for LaTeXML. A pathname
is represented by a simple string.
Pathname Manipulations
"$path = pathname_make(%peices);"
Constructs a pathname from the keywords in pieces
dir : directory
name : the filename (possibly with extension)
type : the filename extension
"($dir,$name,$type) = pathname_split($path);"
Splits the pathname $path into the components: directory, name and type.
"$path = pathname_canonical($path);"
Canonicallizes the pathname $path by simplifying repeated slashes, dots representing the current or parent directory, etc.
"$dir = pathname_directory($path);"
Returns the directory component of the pathname $path.
"$name = pathname_name($path);"
Returns the name component of the pathname $path.
"$type = pathname_type($path);"
Returns the type component of the pathname $path.
"$path = pathname_concat($dir,$file);"
Returns the pathname resulting from concatenating the directory $dir and filename $file.
"$boole = pathname_is_absolute($path);"
Returns whether the pathname $path appears to be an absolute pathname.
"$path = pathname_relative($path,$base);"
Returns the path to file $path relative to the directory $base.
"$path = pathname_absolute($path,$base);"
Returns the absolute pathname resulting from interpretting $path relative to the directory $base. If $path is already absolute, it is
returned unchanged.
File System Operations
"$modtime = pathname_timestamp($path);"
Returns the modification time of the file named by $path, or undef if the file does not exist.
"$path = pathname_cwd();"
Returns the current working directory.
"$dir = pathname_mkdir($dir);"
Creates the directory $dir and all missing ancestors. It returns $dir if successful, else undef.
"$dest = pathname_copy($source,$dest);"
Copies the file $source to $dest if needed; ie. if $dest is missing or older than $source. It preserves the timestamp of $source.
"$path = pathname_find($name,%options);"
Finds the first file named $name that exists and that matches the specification in the keywords %options. An absolute pathname is
returned.
If $name is not already an absolute pathname, then the option "paths" determines directories to recursively search. It should be a
list of pathnames, any relative paths are interpreted relative to the current directory. If "paths" is omitted, then the current
directory is searched.
If the option "installation_subdir" is given, it indicates, in addition to the above, a directory relative to the LaTeXML installation
directory to search. This allows files included with the distribution to be found.
The "types" option specifies a list of filetypes to search for. If not supplied, then the filename must match exactly.
"@paths = pathname_findall($name,%options);"
Like "pathname_find", but returns all matching paths that exist.
AUTHOR
Bruce Miller <bruce.miller@nist.gov>
COPYRIGHT
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.
perl v5.10.1 2009-06-11 LaTeXML::Util::Pathname(3pm)