Sure, the for loop but I could not get it to work either. i.e.
Good -- you were there!!
Quote:
NAME needs to be a variable in the script and not expanded when the script is written to at. So, if you escape it /$NAME that will put it literally in the script ($NAME) and not what name contains (which is nothing). Drop the last dollar sign.
The only other problem I see is that DONE should be lower case. That might just be a cut/paste issue; hard to say from this end.
With those changes it should send you mail with the list of names (I'd use echo to avoid errors if the list is empty).
Have a go with those changes -- you're a lot closer than you think!
Hi,
I am a DBA, worked on Windows platforms for past 6 years, and now shifted in environment where HP UX is OS environment.
I have task to complete which involves Unix script to be prepared. This script should FTP the file to the destination server and if this FTP fails, then it should... (5 Replies)
Hello all,
I have a file - 12.txt
cat 12.txt
===============================================
Number of executions = 2 Total execution time (sec.ms) = 0.009883
Number of executions = 8 Total execution time (sec.ms) = 0.001270
Number of... (23 Replies)
Trying to figure out why this works:
printpwd.pl
#!/usr/bin/perl
use CGI::Carp qw( fatalsToBrowser );
print "Content-type: text/html\n\n";
$A = system("pwd");
$A = `pwd`;
print "$A\n";
^^actually that works/breaks if that makes any sense.. i get the working directory twice but when... (5 Replies)
hi guys im new to unix and what to get this script working
the scripts purpose its purpose is to move files
i copy it from a HP UX pdf just for practice but
when i execute it comes up wit this error command not found
on the line if plz help me and thank in advance
to those who do ps im... (3 Replies)
Hello,
I am facing a very strange problem when I run my script manuallu ./Fetchcode which is using to connect with MKS integrity from linux end it workks fine but when I run it from cron it doesn't work.Can someone help me
1) How could I check my script when it is running from cron like... (3 Replies)
Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered.
The script is as follow:
#!/bin/sh
for file in file_1.txt file_2.txt file_3.txt
do
awk '{ print "0" }' $file > tmp.tmp
mv tmp.tmp $file
done
And the cron... (2 Replies)
Shell Scipt: temp.sh
su - <$username>
expect pass.exp
Expect script: pass.exp
#!/usr/bin/expect -f
# Login
#######################
expect "Password: " send "<$password>\r"
it comes up with Password: but doesnt take password passed throguh file. (2 Replies)
Hi i have write the one scripts and the scripts is error. The scripts purpose select one directory to check the file is there or not. i will give the two format of file to search the mention the path one file is there to select the file one copy the another location.please check the my script give... (1 Reply)
Hello experts,
we have input files with 700K lines each (one generated for every hour). and we need to convert them as below and move them to another directory once.
Sample INPUT:-
# cat test1
1559205600000,8474,NormalizedPortInfo,PctDiscards,0.0,Interface,BG-CTA-AX1.test.com,Vl111... (7 Replies)
Discussion started by: prvnrk
7 Replies
LEARN ABOUT PHP
imap_get_quotaroot
IMAP_GET_QUOTAROOT(3) 1 IMAP_GET_QUOTAROOT(3)imap_get_quotaroot - Retrieve the quota settings per userSYNOPSIS
array imap_get_quotaroot (resource $imap_stream, string $quota_root)
DESCRIPTION
Retrieve the quota settings per user. The limit value represents the total amount of space allowed for this user's total mailbox usage.
The usage value represents the user's current total mailbox capacity.
PARAMETERS
o $
imap_stream -An IMAP stream returned by imap_open(3).
o $quota_root
-$quota_root should normally be in the form of which mailbox (i.e. INBOX).
RETURN VALUES
Returns an array of integer values pertaining to the specified user mailbox. All values contain a key based upon the resource name, and a
corresponding array with the usage and limit values within.
This function will return FALSE in the case of call failure, and an array of information about the connection upon an un-parsable response
from the server.
EXAMPLES
Example #1
imap_get_quotaroot(3) example
<?php
$mbox = imap_open("{imap.example.org}", "kalowsky", "password", OP_HALFOPEN)
or die("can't connect: " . imap_last_error());
$quota = imap_get_quotaroot($mbox, "INBOX");
if (is_array($quota)) {
$storage = $quota['STORAGE'];
echo "STORAGE usage level is: " . $storage['usage'];
echo "STORAGE limit level is: " . $storage['limit'];
$message = $quota['MESSAGE'];
echo "MESSAGE usage level is: " . $message['usage'];
echo "MESSAGE limit level is: " . $message['limit'];
/* ... */
}
imap_close($mbox);
?>
NOTES
This function is currently only available to users of the c-client2000 or greater library.
The $imap_stream should be opened as the user whose mailbox you wish to check.
SEE ALSO imap_open(3), imap_set_quota(3), imap_get_quota(3).
PHP Documentation Group IMAP_GET_QUOTAROOT(3)