10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
The below script used to work fine. Suddenly it's uploading empty file. I am very new to perl. Please help me to find out the problem.
use CGI qw/:standard/;
print_results() if... (2 Replies)
Discussion started by: Anupam_Halder
i'm writing a perl script which whenever runs, should empty 3 pre-decided directories as first step and then the script has the logic to parse some other directories and copy the files inside those directories into these 3 directories. I've the logic already developed, just need to... (2 Replies)
Discussion started by: jhamaks
3. Shell Programming and Scripting
Hi, I got problem with queue code how to determined empty and full and problem with while loop
Here is my pseudo code :
Input page Access
Input Pgae Frame
For i =3 to pageframe count by 1
construct queue of size i
set pageFaultCount to 0
while morepages do
page = NextPage... (1 Reply)
Discussion started by: guidely
4. Shell Programming and Scripting
I am looking for neat way to grep a non-empty string that basically contains a hostname, which might be in FWDN form or without the domain, for example:
The file I am parsing contains blan lines (^$) and also series of "-" which in other places... (2 Replies)
Discussion started by: togr
5. Shell Programming and Scripting
# cat 1
3 3 3
b (2 Replies)
Discussion started by: jimmy_y
6. Shell Programming and Scripting
I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Discussion started by: hussa1n
7. UNIX for Dummies Questions & Answers
I am checking for a empty input file to do some further action , but I am getting exit status 0 in both the cases , for empty and non empty file both.
The value of $? is coming 0 in if part also and else part too.
if ]; then
# exit 0
else... (4 Replies)
Discussion started by: mavesum
8. UNIX for Dummies Questions & Answers
May I know how to check for empty file in Perl.
Iam missing something, somewhere.
my $open_dir = '/path/';
my $ma = "abc_.*.\.psv\$"
opendir(VAR, $open_dir) or die "Can't open $oepn_dir: $!\n";
while( defined ($file = readdir VAR) ) #read all... (1 Reply)
Discussion started by: deepakwins
9. UNIX for Dummies Questions & Answers
my solaris FIND does not support
find myFolder -type d -empty
how can i find the empty folders?
thanks! (7 Replies)
Discussion started by: lasse
10. Shell Programming and Scripting
I know this must be really easy, but i can't get it to work
I've got a perl script, with a file.
I want to print an empty line, and the following doesn't seem to work:
print nameoffile "\n"
thanks for your help!! (3 Replies)
Discussion started by: kfad