01-21-2009
who deletes the files? and how?
if files are being deleted from an application / script, then before deleting them, you can add an entry in a file.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
How to create Flat Files using Unix Shell Script. The Script is supposed to be sheduled to run at a particular time?
Thanks in advance
Appu (4 Replies)
Discussion started by: Aparna_k82
4 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I'm a newbie in shell script.
So, i would like to create a shell script which take 2 IN parameters (PARAM1 and PARAM2).
This script need to create 2 files as :
I need to create this file /etc/apache2/sites-available/PARAM2 :
<VirtualHost *:80>
DocumentRoot "/home/PARAM1/www"... (0 Replies)
Discussion started by: chatlumo
0 Replies
3. Shell Programming and Scripting
how can i CREATE a txt file dynamically in c shell:
for instance:
#! /bin/csh
for each i (*)
cat>file$i.txt
for each j
do .... (1 Reply)
Discussion started by: jdsignature88
1 Replies
4. Shell Programming and Scripting
Dear Unix and Linux users,
Good evening to all.
I'm new to this community and thank you for having an wonderful forum.
Dear members i had to create almost some 300 shell script files for a particular task.
I tried something like this....
#!usr/bin/sh
fname=epdb_jobs
for x in `cat $fname`... (3 Replies)
Discussion started by: NehaB
3 Replies
5. UNIX for Dummies Questions & Answers
I copied all JPEGs from my laptop to an external drive using
find . -name "*.jpg" -exec cp '{}' ./media/Backup/pictures \;
And then deleted all of them from my laptop.
Now, I realize that I need the folder path of all the original JPEGs as the path has the important information.
I dont... (1 Reply)
Discussion started by: eshwaconsulting
1 Replies
6. Shell Programming and Scripting
Hi,
Can anyone help me how to convert a .csv file to a .pdf file using shell script
Thanks (2 Replies)
Discussion started by: ssk250
2 Replies
7. UNIX for Advanced & Expert Users
Hi All,
Its an interview question. I just want to know the answer of below question.
1) How to list deleted files in unix (13 Replies)
Discussion started by: pspriyanka
13 Replies
8. UNIX for Beginners Questions & Answers
Good evening, i need your help please
I've got a file script thet deletes about half millions of files, and i want those files to be printed in a log file as an evidence those files were removed.
#/bin/sh
rm "/home/e-smith/files/users/bill/Maildir/cur/1392373930.28512.comp01:2,S"
rm... (6 Replies)
Discussion started by: alexcol
6 Replies
9. Shell Programming and Scripting
Actually I have many pictures with diferent name and size around 2000, I need generate a copy of them from one list of alias. The structure of the list is something like this:
alias_list.txt
<01>randomname.png<02>
Randomname.png
RandoMname.png
RandOmname.png
RandomnamE.png... (6 Replies)
Discussion started by: Tapiocapioca
6 Replies
LEARN ABOUT OPENSOLARIS
sdp_delete_attribute
sdp_delete_media(3COMMPUTIL) Communication Protocol Parser Utilities Library Functions sdp_delete_media(3COMMPUTIL)
NAME
sdp_delete_media, sdp_delete_attribute - delete the specified media or attribute from the appropriate list
SYNOPSIS
cc [ flag...] file... -lcommputil [ library...]
#include <sdp.h>
int sdp_delete_media(sdp_media_t **l_media, sdp_media_t *media);
int sdp_delete_attribute(sdp_attr_t **l_attr, sdp_attr_t *attr);
DESCRIPTION
The sdp_delete_media() function deletes the specified media from the media list. It is similar to deleting a node in a linked list. The
function first finds the media that needs to be deleted using sdp_find_media(3COMMPUTIL). The found media is then passed to
sdp_delete_media() to delete it. The function frees the memory allocated to media structure after deleting it.
The sdp_delete_attribute() function deletes the specified attribute from the attribute list. It is similar to deleting a node in a linked
list. The function first finds the attribute that needs to be deleted using sdp_find_media_rtpmap(3COMMPUTIL) or sdp_find_attribute(3COMM-
PUTIL). The found attribute is then passed to sdp_delete_attribute() to delete it. The function frees the memory allocated to attribute
structure after deleting it.
RETURN VALUES
Upon successful completion, these functions return 0. Otherwise, the appropriate error value is returned. The value of errno is not changed
by these calls in the event of an error.
ERRORS
These functions will fail if:
EINVAL The mandatory input parameters are not provided or are NULL.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
libcommputil(3LIB), sdp_find_attribute(3COMMPUTIL), sdp_find_media(3COMMPUTIL), sdp_find_media_rtpmap(3COMMPUTIL), attributes(5)
SunOS 5.11 12 Oct 2007 sdp_delete_media(3COMMPUTIL)