11-14-2008
lets say one directory is there "\dat_files"
my question is dat_files should only contain *.dat files. if we try to create any file with with extension other than dat, the file should not create, it should give error.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I've two machine A and B. On the machine B there's a script that get with an ftp command a file on the A machine. I want that creation data file on the machine B is the creation data file on the machine A.
Example:
File text.txt on machine A created on 01/01/2006 11:00. The script on the... (1 Reply)
Discussion started by: superfabius
1 Replies
2. Linux
how to create a file with the same modification time as another file is having using the copy command? (1 Reply)
Discussion started by: infyanurag
1 Replies
3. Solaris
Hi to all,
I am facing a strange problem on the Solaris-10 server. I am unable to create/write files on the server. After writing, when I go for the save, then it gives me and 'jag: I/O error'..where 'jag' is a file name. Please suggest me...
Regards,
Jagdish Machhi (2 Replies)
Discussion started by: jagdish.machhi@
2 Replies
4. Shell Programming and Scripting
hi guys
Kindly see the below script
#!/bin/bash
if
then
# check to see if file notrouter exits or not
if ! ls -l notrouter /root/joy/ >/dev/null
then
touch /root/joy/notrouter
else
echo "Entries already exist"
fi
else
echo "Entries does not exist"
fi
here... (1 Reply)
Discussion started by: whizkidash
1 Replies
5. Solaris
I want to gzip a file and append the creation date to the end of the file. How can I accomplish this task. Basically they are log files which need a creation date stamp appended to make sure they do not overwrite other log files.
-jack (3 Replies)
Discussion started by: jacktravine
3 Replies
6. UNIX for Dummies Questions & Answers
Hi Guys,
Am new worker with the AIX , i need your help please.
i have an AIX server , and i have folder with permission 775 . i need any file that added to this folder to get the same permission of the folder (755) . this folder is used for auditing . users used to delete the files in the... (6 Replies)
Discussion started by: abu7maid2005
6 Replies
7. Shell Programming and Scripting
Hi,
I am quite new to Perl scripting and i need to create a .TXT file using perl, with fields (A,B,C,D,E), and this text file should be named with current file creation date "XYZ_CCYYMMDD.TXT" (i.e.XYZ_2011042514:33 PM).
Can anyone who has done this, please share their expertise on this... (5 Replies)
Discussion started by: msrahman
5 Replies
8. Shell Programming and Scripting
Hi
I need to write a file with value value from Paramer which is passed from datastage. It should overwrite the file if already exists.
Can anybody provide command for this? (1 Reply)
Discussion started by: cnrj
1 Replies
9. Shell Programming and Scripting
Hi Guys,
I have a parameter file.
Sample of it as below:
Name=unix
Country=United States
I want the output as follows
-param Name=unix -param Country='United States'
I am able to achieve appending the "-param" in front.
But unable to append single quotes (') before and after... (6 Replies)
Discussion started by: mac4rfree
6 Replies
10. Shell Programming and Scripting
Hello Folks,
I have an requirement, where i need to get total count of the file based on creation date with there filename selected pattern.
Filename: MobileProtocol.20171228T154200.157115.udr
I want to get the count of files created on each day based on a pattern find.
find . -type... (7 Replies)
Discussion started by: sadique.manzar
7 Replies
LEARN ABOUT DEBIAN
dtk_load_video_udp
DTK_LOAD_VIDEO_UDP(3) Draw Toolkit manual DTK_LOAD_VIDEO_UDP(3)
NAME
dtk_load_video_udp - Load an video stream via UDP connection as a texture
SYNOPSIS
#include <dtk_video.h>
dtk_htex dtk_load_video_udp(int flags, int port);
DESCRIPTION
This function loads as a dynamic texture the video stream broadcasted over the network via UDP by listening to the port port. The texture
will then been tracked by an internal texture manager so that the next call using the same port arguments will return the same texture han-
dle, thus sparing the resources of the system. If not specified by flags the video will not be played immediately and dtk_video_exec(3)
should be called to do start playing.
The argument flags is used to modify the creation. It should contains a bitwise OR combination of the following flags:
DTK_AUTOSTART : Indicates that the video should start immediately after creation.
DTK_NOBLOCKING : Indicates that the creation function should not block waiting that the video pipeline is fully running.
A dynamic texture can be used the same way as a static texture (for example image file). The only difference is that the content of the
texture changes automatically with the stream of video. This means that every time a shape using this texture is drawn, the latest frame
available from the video stream will be mapped on the shape.
There is no need for a valid window to create successfully a texture, i.e. creation of textures are completely decoupled from the creation
of others resources and can even be created in one thread to be used in another one.
Once a the texture is stopped being used, it should be destroyed by dtk_destroy_texture(3).
RETURN VALUE
In case of success, the function returns the handle to the created texture. In case of failure, NULL is returned.
THREAD SAFETY
dtk_load_video_udp() is thread-safe.
SEE ALSO
dtk_destroy_texture(3), dtk_video_exec(3), dtk_video_getstate(3)
EPFL
2011 DTK_LOAD_VIDEO_UDP(3)