10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Here's my code -
for File in "${Files}"; do
uuencode "${File}" "$(basename ${File} 2>&-)" 2>&-;
done | mailx -s "subject" "a@b.c"
Now I want to know if there a way to *not* send an email if the "Files" variables turns out to be blank. Any suggestions?
Also, just to clarify, I... (4 Replies)
Discussion started by: nexional
4 Replies
2. Shell Programming and Scripting
This code shal search for the non-breaking space 0xA0 though it returns the error "fatal: attempt to use scalar 'nbs' as array" Can somebody help?
awk --non-decimal-data -v nbs="0xA0" '{if($0 in nbs) {print FILENAME, NR}}' *.txt (1 Reply)
Discussion started by: sdf
1 Replies
3. UNIX for Dummies Questions & Answers
hi guys
I was presented a LUN from a storage 85GB.
fdisk -l shows 85GB space cool
but after I formatted the partition using fdisk and mkfs.ext3 I only get 75GB space available
why is that? why too many GB lost?
thanks a lot (1 Reply)
Discussion started by: karlochacon
1 Replies
4. Programming
Can a user space application be asynchronously affected of its normal execution course by an interrupt?
How does the driver know which user space process to interrupt?
What are the functions in user space and kernel drivers that achieve this? (1 Reply)
Discussion started by: dragonpoint
1 Replies
5. Ubuntu
Hi All,
Today when I was working on a script to generate custom wordlist. So I ran a script and the output was directed to /tmp.
The disk space was around 19 gb. While the script was running, I decided to direct the o/p file to my 1TB drive. So I broke the run using Ctrl + C.
Now when I... (4 Replies)
Discussion started by: morningSunshine
4 Replies
6. Shell Programming and Scripting
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies
7. UNIX for Dummies Questions & Answers
Hello,
On Solaris 10, iostat -E gives me the following results:
sd1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: FUJITSU Product: MAY2073RCSUN72G Revision: 0501 Serial No: 0708S08M2L
Size: 73.40GB <73400057856 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0... (1 Reply)
Discussion started by: lieselr
1 Replies
8. Shell Programming and Scripting
Hello,
I am currently trying to edit an ldif file. The ldif specification states that a newline followed by a space indicates the subsequent line is a continuation of the line. So, in order to search and replace properly and edit the file, I open the file in textwrangler, search for "\r " and... (14 Replies)
Discussion started by: rowie718
14 Replies
9. Shell Programming and Scripting
I want to write a script to ensure we have enough space in test to bcp in tables from production. Currently we bcp tables out of a sybase database in production and bcp in the table data to a test environment. We use isql and run the stored procedure sp_spaceused against each of the tables in the... (1 Reply)
Discussion started by: stonemonolith
1 Replies
10. Shell Programming and Scripting
I've got a variable that I define based on the contents of a field in a pipe delimited text file (read into $REC) as follows:
TEMP=${echo $REC|awk '-F|' '{print $1}')
echo $TEMP gives me:
"$X1" "$X2" "$X3"
How can I then split this up to pass each of the quote delimited parameters into... (2 Replies)
Discussion started by: krism
2 Replies