10-22-2010
use print with comma at the end (no newline) and output a \r at the beginning of your print... see if that helps.
---------- Post updated at 11:45 PM ---------- Previous update was at 11:44 PM ----------
You may have to investigate using a terminfo or curses library... what I put above won't clear the line... you can fake it by always outputting enough to blank out the old data (uses spaces for example).
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have my code like this
v_site_eli=`sqlplus -s<<-EOsqlplus
$SQL_USERNAME/$SQL_PASSWD
WHENEVER SQLERROR EXIT SQL.SQLCODE
WHENEVER OSERROR EXIT FAILURE
SET TERM OFF
SET HEAD OFF
SET VERIFY OFF
SET FEEDBACK OFF
declare
VARIABLE vn_return_sts varchaR2(6);
begin
SELECT... (1 Reply)
Discussion started by: mjkreddy
1 Replies
2. Programming
Hi,
I've a python script called aaa.py and passing an command line option " -a" to the script like, ./aaa.py -a
& Inside the script if the -a option is given I do some operation if not something else.
code looks like
./aaa.py -a
.
.
if options.a
---some operation---
if not options.a... (1 Reply)
Discussion started by: testin
1 Replies
3. Shell Programming and Scripting
Hi,
I have got the below requirement. please suggest.
I have a file like,
Processing Item is:
/data/ing/cfg2/abc.txt
/data/ing/cfg3/bgc.txt
Processing Item is:
/data/cmd/for2/ght.txt
/data/kernal/config.klgt.txt
I want to process the above file to get the output file like,
... (5 Replies)
Discussion started by: rbalaj16
5 Replies
4. Red Hat
Hi,
I would like to know wheather it is possible to install python 2.6 on RedHat Ent Linux 5 (update8) using rpms?
I have checked by default Python 2.4 is installed.
or wheather Redhat 6.0 needs to be installed for python 2.6? (1 Reply)
Discussion started by: manoj.solaris
1 Replies
5. Linux
I attempted to update Python on my CentOS 5.6 VM and have encountered some issues after then. Initially yum wouldn't work, but I have resolved that.
However, now I am unable to access the Network Configuration section under setup.
When I do select this option I see this at the command line:
... (2 Replies)
Discussion started by: crmpicco
2 Replies
6. UNIX for Dummies Questions & Answers
Hey,
Is there a way I can print " in a command line?
When I type "echo "set variable = disco"".... This actually prints echo set variable = disco but I would like to print it out as --- echo "set variable = disco"
Thanks,
Satya (4 Replies)
Discussion started by: Indra2011
4 Replies
7. Shell Programming and Scripting
Hello all,
Not sure if this question has been answered already.
I have some xml Element variable as below:
child19 = core_elem_dcache.find('stat')
child20 = core_elem_dcache.find('stat')
child21 = core_elem_dcache.find('stat')
child22 = core_elem_dcache.find('stat'Next I... (2 Replies)
Discussion started by: Zam_1234
2 Replies
8. Shell Programming and Scripting
I am looking for help in processing of those options: '-n' or '-p'
I understand what they do and how to use them.
But, I would like to use them with more than one file (and without any shell-loop; loading the 'perl' once.)
I did try it and -n works on 2 files.
Question is:
- is it possible to... (6 Replies)
Discussion started by: alex_5161
6 Replies
LEARN ABOUT DEBIAN
dh_pysupport
DH_PYSUPPORT(1) python-support DH_PYSUPPORT(1)
NAME
dh_pysupport - use the python-support framework to handle Python modules
SYNOPSIS
dh_pysupport [debhelper options] [-V X.Y] [-X item [...]] [-n] [module dirs ...]
DESCRIPTION
dh_pysupport is a debhelper program that will scan your package, detect public modules in /usr/lib/pythonX.Y/site-packages, and move them
to the shared Python modules location. It will generate appropriate postinst/prerm scripts to byte-compile modules installed there for all
available python versions.
It will also look for private Python modules and will byte-compile them with the current Python version. You may have to list the
directories containing private Python modules.
If a file named debian/pyversions exists, it is used to determine the python versions with which the package can work.
Appropriate dependencies on python-support, python and pythonX.Y are put in ${python:Depends}. The ${python:Versions} and
${python:Provides} optional substitution variables are made available as well.
OPTIONS
module dirs
If your package installs private python modules in non-standard directories, you can make dh_pysupport check those directories by
passing their names on the command line. By default, it will check /usr/lib/$PACKAGE, /usr/share/$PACKAGE, /usr/lib/games/$PACKAGE and
/usr/share/games/$PACKAGE
-n, --noscripts
Do not modify postinst/postrm scripts.
-d This option is deprecated.
-V X.Y
Force private modules to be bytecompiled with the specific X.Y python version, regardless of the default python version on the system.
-X item, --exclude=item
Exclude files that contain "item" anywhere in their filename from being taken into account to generate the python dependency. It also
excludes them from byte-compilation. You may use this option multiple times to build up a list of things to exclude.
CONFORMS TO
Python policy as of 2006-08-10
SEE ALSO
debhelper(7)
This program is a part of python-support but is made to work with debhelper.
AUTHORS
Josselin Mouette <joss@debian.org>, Raphael Hertzog <hertzog@debian.org>
1.0.15 2012-06-30 DH_PYSUPPORT(1)