I would like to see what a command is doing. For example, say I move 10 files using mv * somedir. Can I use some other command to see a verification of each files movement. Like:
file1 moved to somedir
file2 moved to somedir
...
but, i'd to have this capability for all commands. it seems... (1 Reply)
Hi all,
Does anyone know how to ammend the .cshrc file in $HOME for your session to display the path as part of the command line? So that I dont need to keep on typing pwd to see where I am?
thanks
Ocelot (2 Replies)
Hi,
I want to display list of last 10 backup files (with numbering) from the temporary file
c:/tmp/tmp_list_bkp.txt
Example :
1) backup_file1
2) backup_file2
3) backup_file3
........
........
I tried as below but not working.
for file in c:/tmp/tmp_list_bkp.txt
do
echo... (3 Replies)
#!/bin/bash
function check_num_args()
{
if ; then
echo "Please provide a file name"
else
treat_as_file $*
fi
}
function treat_as_file()
{
numFiles=$#
for((i=1;i<=$numFiles;i++));do
echo $i
... (3 Replies)
can any1 please tell me what is problem with following code:
i=1;
cat test| while read CMD;
do
Var$i=$CMD; or Var$i=$(echo $CMD) ;
let i++
doneI keep getting error :
line 4: Var1=sometext: command not found (2 Replies)
Hi
I've gotten a plugin script that won't run. I keeps throwing an error at the following line.
for BARCODE_LINE in `cat ${TSP_FILEPATH_BARCODE_TXT} | grep "^barcode"`
do
#something
done
The error reads
... (3 Replies)
Hi gurus,
I hit a block when write the script.
I need do while loop, in the loop I have code below.
sqlplus -s abc/abc@abc <<EOF
spool testwhile
select *
from dual;
spool off
exit;
EOF
when I run script with only this code, it works fine.
if I add code as below:
#!/bin/ksh
... (5 Replies)
Hello all
I have a query (SQL) that returns a rather long field from an Oracle database. The field in question is defined on 400 characters but all these 400 cannot be displayed by the echo command. Thus when I launch the following command:
echo "SELECT FIELD01 FROM TABLE_NAME;" | sqlplus -s... (9 Replies)
Hi Team,
Not getting the file output inside my email which i am sending from unix box. . Please refer the below code :
#!/bin/sh
{
sleep 5
echo ehlo 10.56.185.13
sleep 3
echo mail from: oraairtel@CNDBMUREAPZP02.localdomain
sleep 3
echo rcpt to: saurabhtripathi@anniksystems.com... (1 Reply)
Hi!
I've run into a problem where my variables are displayed in the wrong order. Basically I'm supposed to use a file that has information like this username:firstname:lastname:etc:etc.
What I'm interested in doing is reformating it into a something more like this: username lastname,... (2 Replies)
Discussion started by: reindeermountai
2 Replies
LEARN ABOUT DEBIAN
globus_rls_client_queryresult
Query Results(3) globus rls client Query Results(3)NAME
Query Results -
Data Structures
struct globus_rls_attribute_object_t
globus_rls_client_lrc_attr_search() returns a list of these structures which include the object name (LFN or PFN) and attribute value
found by the query.
struct globus_rls_string2_t
String pair result.
struct globus_rls_string2_bulk_t
String pair result with return code, returned by bulk query operations.
Functions
globus_result_t globus_rls_client_free_list (globus_list_t *list)
Detailed Description
List results are returned as globus_list_t's, list datums depend on the type of query (eg globus_rls_string2_t, globus_rls_attribute_t,
etc).
A list result should be freed with globus_rls_client_free_list() when it's no longer needed. RLS supports limiting the number of results
returned by a single query using an offset and reslimit. The offset specifies which result to begin with, reslimit specifies how many
results to return. Offset should begin at 0 to retrieve all records. If reslimit is 0 then all results are returned at once, unless the
server has a limit on results configured. If NULL is passed as the offset argument then the API will repeatedly call the query function
until are results are retrieved. The following are equivalent examples of how to print the lfn,pfn pairs returned by
globus_rls_client_lrc_get_lfn():
globus_list_t *str2_list;
globus_list_t *p;
globus_rls_string2_t *str2;
// Retrieve all results, API will handle looping through partial results
// if the server has a limit configured. Error handling has been omitted.
globus_rls_client_lrc_get_lfn(h, "somepfn", NULL, 0, &str2_list);
for (p = str2_list; p; p = globus_list_rest(p)) {
str2 = (globus_rls_string2_t *) globus_list_first(p);
printf("lfn: %s pfn:%s0, str2->s1, str2->s2);
}
globus_rls_client_free_list(str2_list);
// This code fragment retrieves results 5 at a time. Note offset is set
// to -1 when the server has no more results to return.
int offset = 0;
while (globus_rls_client_lrc_get_lfn(h, "somepfn", &offset, 5, &str2_list) == GLOBUS_SUCCESS) {
for (p = str2_list; p; p = globus_list_rest(p)) {
str2 = (globus_rls_string2_t *) globus_list_first(p);
printf("lfn: %s pfn:%s0, str2->s1, str2->s2);
}
globus_rls_client_free_list(str2_list);
if (offset == -1)
break;
}
.fi
Function Documentation
globus_result_t globus_rls_client_free_list (globus_list_t *list)
Free result list returned by one of the query functions. Parameters:
list List returned by one of the query functions.
Return values:
GLOBUS_SUCCESS List and contents successfully freed.
Author
Generated automatically by Doxygen for globus rls client from the source code.
Version 5.2 Wed Jan 25 2012 Query Results(3)