As you have been told before: Please tell us what operating system and shell you're using whenever you start a new thread in the Shell Programming and Scripting forum!
Warning: The following paragraph is only partially correct. For full detail, see post #5 in this thread.
Assuming that you're using a standards conforming shell, using cd inside braces only affects the current working directory of other commands run inside those braces. Therefore, the awk and shell commands in your pipeline will be run in the directory in which you were located when you invoked your script; not necessarily in /home/asp. Try changing the first line in your script from:
to:
This User Gave Thanks to Don Cragun For This Post:
hi friends.
yo i have a textfile with urlīs in it
sometimes middle in text, sometimes one url alone is a line
i append a string right behind the domain name
so that http://unix.com becomes http://unix.com.APPENDTHIS on all occasions.
i use this sed-line to achieve this:
sed -i... (3 Replies)
I have a laptop running Ubuntu Gusty. I have recently used applications such as AWN, Emerald, etc... to create a Mac OS X Leopard like environment. It works almost perfectly except for one little glitch. When I open most of my apps/windows, they all open with the top bar(with includes close,... (5 Replies)
conditional is not wworking
can any one figure out what goes wrong
xx1=`$ORACLE_HOME/bin/sqlplus -s apps/ostgapps1 2>/dev/null << EOF
WHENEVER SQLERROR EXIT 1
set head off feedback off ;
WHENEVER SQLERROR EXIT SQL.SQLCODE;
select count(*) from CMS_INVOICE_ALL... (2 Replies)
Hi,
I am new to unix and shell scripting.In my script,there is a line using the "if" conditional -
if && ; then
do something
Here "x" is a variable holding string value.If it is not equal to a comma or a string,only then I want to enter the "if" loop. But I am getting error while... (1 Reply)
Hi,
I am new to unix and shell scripting.In my script,there is a line using the "if" conditional -
if && ; then
do something
Here "x" is a variable holding string value.If it is not equal to a comma or a string,only then I want to enter the "if" loop. But I am getting error while... (12 Replies)
hi,
i have a perl script that runs as a cron job... Once in a while, the perl
script fails with:
Can't locate <module>.pm in @INC (@INC contains: .............)
because one of the perl modules specified in the "use" statements is
unavailable due to an NFS glitch.
Is there some... (1 Reply)
Hi,
I want to perform a conditional search and remove my search string.
Input string: "abcdaabcadgfaarstab"
Character to search: "a"
Condition: Remove all "a" in the input string except if it is "aa"
Output string: "bcdaabcdgfaarstb"
Can you please help me in this? (5 Replies)
A portion of my input is as follows:
1087 IKON01,49 A WA- -1 . -1 . 0 W WA- -1 . -1 . 0 . -1 . -1 -1 -1 -1 -1 -1 W
1088 IKON01,49 A J.@QU80MW. 2... (2 Replies)
Hi Friends,
I have somefiles like
20180720_1812.tar.gz
20180720_1912.tar.gz
20180720_2012.tar.gz
20180720_2112.tar.gz
20180721_0012.tar.gz
20180721_0112.tar.gz
20180721_0212.tar.gz
20180721_0312.tar.gz
in a directory and so on..these files gets created every 3 hours where as... (28 Replies)
Discussion started by: onenessboy
28 Replies
LEARN ABOUT DEBIAN
mtp_objects
The object management API.(3) libmtp The object management API.(3)NAME
libmtp - The object management API.
Functions
int LIBMTP_Delete_Object (LIBMTP_mtpdevice_t *, uint32_t)
int LIBMTP_Set_Object_Filename (LIBMTP_mtpdevice_t *, uint32_t, char *)
Detailed DescriptionFunction Documentation
int LIBMTP_Delete_Object (LIBMTP_mtpdevice_t *device, uint32_tobject_id)
This function deletes a single file, track, playlist, folder or any other object off the MTP device, identified by the object ID.
If you delete a folder, there is no guarantee that the device will really delete all the files that were in that folder, rather it is
expected that they will not be deleted, and will turn up in object listings with parent set to a non-existant object ID. The safe way to do
this is to recursively delete all files (and folders) contained in the folder, then the folder itself.
Parameters:
device a pointer to the device to delete the object from.
object_id the object to delete.
Returns:
0 on success, any other value means failure.
References LIBMTP_mtpdevice_struct::params.
int LIBMTP_Set_Object_Filename (LIBMTP_mtpdevice_t *device, uint32_tobject_id, char *newname)
THIS FUNCTION IS DEPRECATED. PLEASE UPDATE YOUR CODE IN ORDER NOT TO USE IT.
See Also:
LIBMTP_Set_File_Name()
LIBMTP_Set_Track_Name()
LIBMTP_Set_Folder_Name()
LIBMTP_Set_Playlist_Name()
LIBMTP_Set_Album_Name()
References LIBMTP_file_struct::filetype, and LIBMTP_Get_Filemetadata().
Author
Generated automatically by Doxygen for libmtp from the source code.
Version 1.1.3 Sun Feb 17 2013 The object management API.(3)