Hello.
Consider the following magic words:
# ls `which adduser`
ls: /usr/sbin/adduser: No such file or directory
#
Hmmm...
Then:
# ls /usr/sbin/adduser
/usr/sbin/adduser
#
Now what?
Unforunately this little sniippet is used in my debian woody server's mysql pre install script.... (2 Replies)
Hi,
I use the command
ls a\b\c\*.txt
from the command line on HP UNIX and it works fine - It lists all files matching *.txt in the a\b\c directory
When embeded in a ksh script
`ls a\b\c\*.txt`
it does not work - I get *.txt not found (even though there are files)
I tried... (10 Replies)
Portion of my script below :
if ; then
NUMBEROFFEILDS=`cat ${BASE_SCRIPT_LOC}/standardfilecleanup.lst|grep -w ${db_file_path}|awk -F: '{print NF}'`
COUNT=4
while ; do
awk_var="$"`echo $COUNT`
file_name1=`cat ${BASE_SCRIPT_LOC}/standardfilecleanup.lst|grep -w... (1 Reply)
Hi,
I need to write a Linux shell script which will perform an FTP operation to another server.
main.sh will contain -
ftp -nd Dest.IP.address < ftpScript.sh
Contents of ftpScript.sh is given below -
user userid passwd
prompt
lcd /vidya/Input
cd vidya/Output
mput *.*
close
... (1 Reply)
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)
Hi. I am trying to start a script on my router that will execute even if i log off. To execute the script I write:
nohup ./dslconnection > dslstat.out 2>&1 &
It starts the job:
21968 admin 1604 S /bin/ash ./dslconnection
The problem is that when I log back in the job has been... (6 Replies)
Hi,
I have prepared a script and trying to execute it but not getting expected output. Could you please help and advise what is going wrong.
"If else" part in below script is not working basically.
I am running it on HP-UX.
for i in slpd puma sfmdb
do
echo "******\t$i\t*******"
echo... (10 Replies)
I ran into the following and still do not understand entirely the rationale behind this. If someone could explain why things are as they are I'd be thankful.
The following was tested on AIX 7.1 with ksh88, but i suspect that to be ubiquitous. In an installation routine i had to create a set of... (6 Replies)
Hi Experts,
Need your kind help with gsub awk.
Below is my pattern:"exec=1_host_cnt=100_dup=4_NameTag=targetSrv_500.csv","'20171122112948"," 100"," 1"," 1"," 4","400","","",
" aac sample exec ""hostname=XXXXX commandline='timeout 10 openssl speed -multi 2 ; exit 0'"" ","-1","-1","1","... (6 Replies)
Discussion started by: pradyumnajpn10
6 Replies
LEARN ABOUT XFREE86
xv
Xv(3X)Xv(3X)Name
Xv - X Window System video extension
Description
The Xv extension provides support for video adaptors attached to an X display. It takes the approach that a display may have one or more
video adaptors, each of which has one or more ports through which independent video streams pass.
An adaptor may be able to display video in a drawable, capture video from a drawable, or both. It translates between video encoding (NTSC,
PAL, SECAM, etc...) and drawable format (depth and visual-id pair). An adaptor may support multiple video encodings and/or multiple draw-
able formats.
Clients use Xv(3X) to gain access and manage sharing of a display's video resources. Typically, a client will use XvQueryExtension(3X) to
determine the status of the extension, XvQueryAdaptors(3X) to get a description of what video adaptors exist, and XvQueryEncodings(3X) to
get a description of what video encodings an adaptor supports.
Once a client has determined what video resources are available, it is free to put video into a drawable or get video from a drawable,
according the capabilities supported. Clients can select to receive events when video activity changes in a drawable and when port
attributes have changed.
Summary of Library Functions
The following is a summary of Xv library functions:
XvGetPortAttribute(3X) - return current port attribute value
XvGetStill(3X) - capture a single frame of video from a drawable
XvGetVideo(3X) - capture video from a drawable
XvGrabPort(3X) - lock port for exclusive use by client
XvPortNotify(3X) - event generated when port attributes change
XvPutStill(3X) - write a single frame of video to a drawable
XvPutVideo(3X) - write video into a drawable
XvQueryAdaptors(3X) - return adaptor information for a screen
XvQueryBestSize(3X) - determine the optimum drawable region size
XvQueryEncodings(3X) - return list of encodings for an adaptor
XvQueryExtension(3X) - return version and revision of extension
XvSelectPortNotify(3X) - enable or disable XvPortNotify events
XvSelectVideoNotify(3X) - enable or disable XvVideoNotify events
XvSetPortAttribute(3X) - set an attribute for a port
XvStopVideo(3X) - stop active video
XvUngrabPort(3X) - release a grabbed port
XvVideoNotify(3X) - event generated for video processing
Each of these functions is described in its own Xv man page.
XFree86 Version 4.7.0 Xv(3X)