Sponsored Content
Full Discussion: Echo not working with $
Top Forums Shell Programming and Scripting Echo not working with $ Post 302949835 by ekharvi on Thursday 16th of July 2015 12:45:26 PM
Old 07-16-2015
$PATH1 and $PATH2 are visible for all users or environment variables set in the .proifile
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Echo working funny

Hello, this is my first post and question. I have search before for this problem but didn't find anything similar. My case: I have a string inside the variable string1 like this: string1="lala lele lili lolo lulu" When I do echo of it, it appears like this: echo $string1 lala lele lili... (8 Replies)
Discussion started by: hemtar
8 Replies

2. Shell Programming and Scripting

Difference between using "echo" builtin and /bin/echo

So in my shell i execute: { while true; do echo string; sleep 1; done } | read line This waits one second and returns. But { while true; do /bin/echo string; sleep 1; done } | read line continues to run, and doesn't stop until i kill it explicitly. I have tried this in bash as well as zsh,... (2 Replies)
Discussion started by: ulidtko
2 Replies

3. UNIX for Dummies Questions & Answers

How to correctly use an echo inside an echo?

Bit of a weird one i suppose, i want to use an echo inside an echo... For example... i have a script that i want to use to take users input and create another script. Inside this script it creates it also needs to use echos... echo "echo "hello"" >$file echo "echo "goodbye"" >$file ... (3 Replies)
Discussion started by: mokachoka
3 Replies

4. UNIX for Dummies Questions & Answers

Is echo $variable >> text.txt working in MacOSX?

Hi New at this, but want to learn more. I'm trying this as an Shell Command in MacOSX; newdate='<TIME>' echo $newdate >> /Users/ttadmin/Desktop/test.txt And it don't work. But if I just use; echo <TIME> >> /Users/ttadmin/Desktop/test.txt (<TIME> is an variable that one program... (6 Replies)
Discussion started by: jackt
6 Replies

5. Shell Programming and Scripting

why the set rr='echo string|cut not working

I am new to the c shell script, can you let me know why the set rr= is not working. C shell script #! /bin/csh Set tt= 12345_UMR_BH452_3_2.txt set rr='echo $tt | cut –d”_” -f1' syntax error (4 Replies)
Discussion started by: jdsignature88
4 Replies

6. Shell Programming and Scripting

With that logic this echoes "echo". Question about echo!

echo `echo ` doesn't echoes anything. And it's logic. But echo `echo `echo ` ` does echoes "echo". What's the logic of it? the `echo `echo ` inside of the whole (first) echo, echoes nothing, so the first echo have to echo nothing but echoes "echo" (too much echoing :P):o (2 Replies)
Discussion started by: hakermania
2 Replies

7. Shell Programming and Scripting

echo is not working as expected

for i in `cat /export/home/afahmed/Arrvial_time.txt` do echo $i echo $i | awk '$3 < $D { print $4 }' >> dynamic_DF.txt; done When i echo, its echo as Nov 15 02:24 /export/home/pp_adm/inbound//wwallet_20111115.txt where i expect it to be Nov 15 02:24... (7 Replies)
Discussion started by: afahmed
7 Replies

8. Shell Programming and Scripting

echo two variables like the paste command is not working

Dear all, I have two files like this file1 A B C D E F file2 1,2 3,4 5,6 I want this output output_expected A B 1,2 C D 3,4 E F 5,6 (3 Replies)
Discussion started by: valente
3 Replies

9. Shell Programming and Scripting

Echo command not working in the script

HI I have and echo command which works perfectly in the shell but when i execute in the script it gives me an error code query is as below QUERY=`echo "Select Severity,Dupl_count,Creation_Time,Last_Received,Node_Name,Node_Name,Object,Message_Group,Message_Text,Last_Annotation from " \ ... (2 Replies)
Discussion started by: Jcpratap
2 Replies

10. Shell Programming and Scripting

Disk Space Utilization in HTML format working in one environment and not working on the other

Hi Team, I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system. df -h | awk -v host=`hostname` ' BEGIN { print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies
PACO(8) 							      System								   PACO(8)

NAME
paco - a source code package organizer SYNOPSIS
paco [OPTIONS] <packages> paco -l [OPTIONS] <package> <command> paco -q <files> DESCRIPTION
Paco is a program to aid package management when installing packages from source code. When installing a package, paco can be used in log mode (with option -l) to wrap the installation command (e.g. "make install"), and log the created files. By default the log is stored in directory '/var/log/paco'. Once some packages are installed and properly logged, paco can be used in list mode, which is the default, to display package information. Several options are provided to print the information in different formats. There are also options to remove packages, query for the owner of files, or maintain the package database. Mandatory arguments to long options are mandatory for short options too. The special option -- forces and end of option-scanning. This is specially useful when entering the install command in log mode. GENERAL OPTIONS
-a, --all Apply the specified action to all logged packages. This doesn't work with option -r. -h, --help Display a help message and exit. -L, --logdir=DIR Base log directory. Default is '/var/log/paco', unless variable LOGDIR is set in the configuration file (type 'man pacorc' for more information). -v, --verbose Verbose output. -vv prints also debugging messages (only meaningful with option -l). --version Display version information and exit. DATABASE MAINTENANCE OPTIONS
-u, --update Synchronize the log of the package with the current status of the filesystem, calculating the size of the logged files and checking whether they are missing. If a file becomes compressed or uncompressed (with bzip2 or gzip), it is detected as well. Use along with -a to update the whole database. -U, --unlog Remove the log of the package from the database. GENERAL LIST OPTIONS
-b, --block-size=SIZE Use blocks of SIZE bytes for the sizes. SIZE may be an integer, optionally followed by one of the following: k, K, m, M. -k, --kilobytes Like '--block-size=1k', or '--block-size=1024'. --sort=WORD Sort the list by WORD: When listing files, meaningful values for WORD are: 'name' and 'size'. When listing packages, WORD may be also: 'date' (or 'time'), 'files', 'missing-files' or 'missing-size'. -R, --reverse Reverse order while sorting. -t, --total Print totals at the bottom of the list. PACKAGE LIST OPTIONS
-1, --one-column List one package per line. -F Print the number of installed files. -M Print the number of missing files. -C Print the number of shared files (both installed and missing). -d, --date Show installation date (-dd shows the hour too). -s, --size Show the currently installed size of each package; in human readable format by default (e.g. 1.2M, 13k). -n, --missing-size Print the missing size of each package (= original size - current size). FILE LIST OPTIONS
-f, --files List currently installed files of the package. -m, --missing-files List missing files (those files removed after the installation of the package). -f and -m options can be used together. -c, --shared With -f and/or -m, list only the shared files (those files also logged by other packages). -N, --non-shared With -f and/or -m, list only the non shared files (those files not logged by any other package). -w, --who-shares With -c, print the names of the packages that share each file. -y, --symlinks Print the contents of symbolic links. -s, --size Print the size of each file; in human readable format by default (e.g. 1.2M, 13k). -z, --no-package-name Do not print the name of the package. Useful for scripts. INFORMATION OPTIONS
Note: Information may be not available for all packages. -i, --info Print package information. -o, --configure-options Print the configure options the package was built with. -q, --query, --owner Query for the packages that own one or more files. LOG OPTIONS
-l, --log Enable log mode: If a shell command is given as an argument, execute and monitor it, logging the created files, otherwise the list of files to log is read from the standard input. The list of logged files is printed to the standard output, unless any of -p or -D options is used, in which case is assumed that a package is to be logged in the paco database. When a shell comand is monitorized, paco returns the exit code of that command. See EXAMPLES below. -p, --package=PKG Specify the name of the package to log, which must begin with an alphanumeric character. With -v, the list of logged files is also printed to the standard error stream. With -vv, paco prints detailed information about the install process. This holds for option -D too. -D, --dirname Use the name of the current directory as the name of the package to be logged. -E, --exclude=PATH1:PATH2:... Colon-separated list of paths to skip when logging. Default is '/dev:/tmp:/usr/src:/media:/selinux:/sys:/usr/share/info/dir', unless variable EXCLUDE is set in the configuration file (type 'man pacorc' for more information). Shell wildcards are allowed in the PATHs. See PATH MATCHING below for more details. -I, --include=PATH1:PATH2:... Colon-separated list of paths to scan when logging. Default is '/', unless variable INCLUDE is set in the configuration file (type 'man pacorc' for more information). Shell wildcards are allowed in the PATHs. See PATH MATCHING below for more details. --ignore-errors Do not exit if the install command fails. This allows for logging uncomplete installations, and cleanup the system upon an installa- tion failure. Errors are not ignored by default, unless variable LOG_IGNORE_ERRORS is set to 1 in the configuration file (type 'man pacorc' for more information). --log-missing Log also the missing files (they are skipped by default). See EXAMPLES below. -+, --append With -p or -D, if the package is already logged, append the list of files to its log. REMOVE OPTIONS
-r, --remove Remove a package, keeping the shared files and asking for confirmation by default. Compressed files (with gzip or bzip2) are also removed. If the option is doubled (-rr), or all logged files are successfully removed, the package is removed from the database. -B, --batch Don't prompt for confirmation when removing (and assume yes to all questions). -e, --skip=PATH1:PATH2:... Don't remove files in these paths. Shell wildcards are allowed in the PATHs. See PATH MATCHING below for more details. --remove-shared Remove also the shared files. PATH MATCHING
Options -I, -E and -e accept a colon-separated list of paths, each of which may contain shell-like wildcards (*, ? and [..]). Files are matched against each of those paths, following the standard shell-like expansion, but with the following exception: If a path in the list does not contain any wildcard, and it is a directory, it matches any file within that directory. Note that if wildcards are to be used, the whole list of paths must be enclosed in single quotes (') to protect it from being expanded by the shell. EXAMPLES
To log the installation of the package 'foo-1.0', which is installed with the command 'make -C src install': paco -lp foo-1.0 "make -C src install" Note that in this example the quotes are required to prevent paco to treat '-C' as a command line option. Use single quotes if the command already contains double quotes: paco -lp foo-1.0 'echo "hello world" > /var/log/foo.log' The special end-of-option argument '--' may be used for the same purpose: paco -lp foo-1.0 -- make -C src install Alternatively, we can use the basename of the current directory as the name of the package to log, using the option -D instead of -p: paco -lD "make install && make install.man" If we have forgotten to install a file, it can be added to a previously created log with the option -+: paco -lp+ foo-1.0 "install foo /bin/foo" Note that the option -+ cannot be used to remove a file from the log. For instance, the following command: paco -lp+ foo-1.0 "rm /bin/foo" would not unlog the file /bin/foo from the log of foo-1.0, but it would mark it as missing instead. To avoid such behaviour it is sometimes useful to join up composed install commands into one single command and run paco once. For instance, imagine that a package installs the file /bin/foo, but we want it to be installed in /usr/bin/foo. If one runs this: paco -lp foo-1.0 make install paco -lp+ foo-1.0 "mv /bin/foo /usr/bin/foo" Both files, /bin/foo and /usr/bin/foo remain in the log. /usr/bin/foo is marked as installed, and /bin/foo is marked as missing. This is usually not the desired behaviour. As a workaround one can join up both commands in one single paco run: paco -lp foo-1.0 "make install && mv /bin/foo /usr/bin/foo" In this case only /usr/bin/foo is logged. The understand the meaning of the option --log-missing, consider the following example, where the file /foo/bar does not exist: echo /foo/bar | paco --log-missing -lp foo This would log the file /foo/bar, even if it is missing. Without the option --log-missing /foo/bar is skipped. To remove all versions of the package foo, keeping the files in /etc and /root, and without asking for confirmation: paco -r --batch -e /etc:/root foo To remove the package foo-3.3, keeping the files in /var/log and the files ending with ".conf": paco -r -e '/var/log:*.conf' foo-3.3 We have installed the package 'bubble-1.9' in prefix '/opt/bubble-1.9', but we haven't logged the installation with paco. No problem! Just create a log for it thusly: find /opt/bubble-1.9 | paco -lp bubble-1.9 BUGS
Due to LD_PRELOAD limitations, paco can't follow the trace of suid programs. For the same reason, paco does not work with programs that statically link libc. FILES
/etc/pacorc - configuration file /var/log/paco - default log directory WEB SITE
The latest version of paco should be always available at: http://paco.sourceforge.net COPYRIGHT
Copyright (C) 2004-2009 David Rosal <davidrr@sourceforge.net> This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
pacorc(5), pacoball(8), superpaco(8), rpm2paco(8) paco-2.0.9 28 June 2010 PACO(8)
All times are GMT -4. The time now is 08:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy