Sponsored Content
Top Forums Shell Programming and Scripting how ./example.sh differs from . /example.sh and ./ example.sh Post 302150378 by lokeshpashine on Tuesday 11th of December 2007 08:01:56 AM
Old 12-11-2007
how ./example.sh differs from . /example.sh and ./ example.sh

May i know the difference between the execution of the commands:
./example.sh
. /example.sh and
./ example.sh

the last and last but one is having space in between that is the difference please suggest me the answer for this...Smilie
 

9 More Discussions You Might Find Interesting

1. Solaris

gcc output size differs on same version of solaris

Hello everybody, I am having two machines. I am using g++v2.95 When I do the build,the size of output file on both machines differ. I am not able to find what can be the problem. Both the machines are solaris 5.6 The command is : g++ -c -g -I./ -I../../../include -I/usr/local/include/g++-3... (1 Reply)
Discussion started by: manishs13
1 Replies

2. Shell Programming and Scripting

print the first 5 lines in which 2 files differs

it is a simple problem, but I am totally new to shell programming There are 2 files. I have to print the 5 five lines which are different. I appreciate any help. 10x. (2 Replies)
Discussion started by: atticus
2 Replies

3. UNIX for Advanced & Expert Users

pid differs

I always find that the pid I get from: /var/run/syslog-ng.pid and ps -ef |grep syslog-ng are different. this also happens on other pids. why? If I am going to kill a process, which pid should I use? (1 Reply)
Discussion started by: fredao
1 Replies

4. Shell Programming and Scripting

ftp. copy if size differs

Hi. On my system there is a script which making backup to ftp site. But it leaves copy of files on local machine. Then i go to Midnight Commander and check manually with MC features - i open ftp directory and copy files <if size differs>. So, how can i do the last thing in shell or other... (1 Reply)
Discussion started by: kukuruku
1 Replies

5. Shell Programming and Scripting

script execution differs in cron

I have the following script (MyScript): #!/bin/sh ps U erv | grep -v grep | grep -F "/usr/bin/collect -o 101" echo "Result: $?" When executed from the command line, I get ... (the line containing /usr/bin/collect -o 101) Result: 0 (which is correct since collect is running) When I... (4 Replies)
Discussion started by: lost_neko
4 Replies

6. Programming

how abstract class differs in Java and C++?

hello all, i want to know if there is any difference in working and syntax declaration of abstract class in Java and C++. (1 Reply)
Discussion started by: haravivar
1 Replies

7. UNIX for Advanced & Expert Users

PPID differs in script and prompt

I tried several times to get answer to the below problem. Someone can please help me? $ cat p1.sh #!/bin/sh `./c1.sh &` while # indefinite loop do x=5; done $ cat c1.sh # sleep for 10 sec and exit #!/bin/sh sleep 10; Execute P1 as ./p1 & $ ps -eaf | grep c1... (1 Reply)
Discussion started by: alexalex1
1 Replies

8. Shell Programming and Scripting

Output of echo $$ differs in Script than console

Hi All, I have a very basic query for 'echo $$' command. When I am executing echo $$ on console then it is giving different output than the execution of echo $$ in a script. Console Output: ------------------------- bash-3.2$ echo $$ 15610 bash-3.2$ In Script:... (3 Replies)
Discussion started by: manishdivs
3 Replies

9. Shell Programming and Scripting

Output differs when run manually and when cron job executes it

I get a different output when i manually run the .sh script and when it is run by a cron job. Please help me .. TMP1="/lhome/bbuser/script/wslog/sar.t1" TMP2="/lhome/bbuser/script/wslog/sar.t2" TMP3="/lhome/bbuser/script/wslog/sar.t3" OUTPUT="/lhome/bbuser/script/wslog/sar.out"... (8 Replies)
Discussion started by: nithinankam
8 Replies
LATEXDIFF-VC(1) 					User Contributed Perl Documentation					   LATEXDIFF-VC(1)

NAME
latexdiff-vc - wrapper script that calls latexdiff for different versions of a file under version management (CVS, RCS or SVN) SYNOPSIS
latexdiff-vc [ latexdiff-options ] [ latexdiff-vc-options ] -r [rev1] [-r rev2] file1.tex [ file2.tex ...] or latexdiff-vc [ latexdiff-options ] [ latexdiff-vc-options ][ --postscript | --pdf ] old.tex new.tex DESCRIPTION
latexdiff-vc is a wrapper script that applies latexdiff to a file, or multiple files under version control (CVS or RCS), and optionally runs the sequence of "latex" and "dvips" or "pdflatex" commands necessary to produce pdf or postscript output of the difference tex file(s). It can also be applied to a pair of files to automatise the generation of difference file in postscript or pdf format. OPTIONS
--rcs, --svn, or --cvs Set the version system. If no version system is specified, latexdiff-vc will venture a guess. latexdiff-cvs and latexdiff-rcs are variants of latexdiff-vc which default to the respective versioning system. However, this default can still be overridden using the options above. -r, -r rev or --revision, --revision=rev Choose revision (under RCS, CVS or SVN). One or two -r options can be specified, and the resulting in different behaviour: latexdiff-vc -r file.tex ... compares file.tex with the most recent version checked into RCS. latexdiff-vc -r rev1 file.tex ... compares file.tex with revision rev1. latexdiff-vc -r rev1 -r rev2 file.tex ... compares revisions rev1 and rev2 of file.tex. Multiple files can be specified for all of the above options. All files must have the extension ".tex", though. latexdiff-vc old.tex new.tex compares two files. The name of the difference file is generated automatically and reported to stdout. -d or --dir -d path or --dir=path Rather than appending the string "diff" and optionally the version numbers given to the output-file, this will prepend a directory name "diff" to the original filename, creating the directory and subdirectories should they not exist already. This is particularly useful in order to clone a complete directory hierarchy. Optionally, a pathname path can be specified, which is prepended instead of "diff". --ps or --postscript Generate postscript output from difference file. This will run the sequence "latex; latex; dvips" on the difference file (do not use this option in the rare cases, where three "latex" commands are required if you care about correct referencing). If the difference file contains a "ibliography" tag, run the sequence "latex; bibtex; latex; latex; dvips". --pdf Generate pdf output from difference file using "pdflatex". This will run the sequence "pdflatex; pdflatex" on the difference file, or "pdflatex; bibtex; pdflatex; pdflatex" for files requiring bibtex. --force Overwrite existing diff files without asking for confirmation. Default behaviour is to ask for confirmation before overwriting an existing difference file. --help or -h Show help text --version Show version number All other options are passed on to "latexdiff". SEE ALSO
latexdiff PORTABILITY
latexdiff-vc uses external commands and is therefore limited to Unix-like systems. It also requires the RCS version control system and latex to be installed on the system. Modules from Perl 5.8 or higher are required. AUTHOR
Copyright (C) 2005 Frederik Tilmann This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 2 Contributors: S Utcke, H Bruyninckx perl v5.14.2 2007-09-29 LATEXDIFF-VC(1)
All times are GMT -4. The time now is 04:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy