10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I already know about the docx2txt program, and it's extremely helpful. ssconvert is also really helpful, but unlike docx2txt, it works both ways. How does one convert a .txt file to .docx via CLI, or is it even possible??
This:
docx2txt example.docx
results in making a .txt file out of... (2 Replies)
Discussion started by: Huitzilopochtli
2 Replies
2. Shell Programming and Scripting
Heyas
I'm trying to add color 'support' to my TUI.
It works, but behaves weird.
Code in question: (status.conf)
R="\033" ; TUI_WORK=""
TUI_DONE="" ; TUI_FAIL=""
TUI_SKIP="" ; TUI_NEXT=""
TUI_BACK="" ; TUI_CANC=""
TUI_ON="" ; TUI_OFF=""
TUI_INFO="" ; TUI_HELP=""
The... (4 Replies)
Discussion started by: sea
4 Replies
3. Shell Programming and Scripting
Hello All,
I'm writing a Bash Script and in it I execute a piped command within a Function I wrote and I can't seem to redirect the
stderr from the 1st pipe to stdout..?
I'm setting the output to an Array "COMMAND_OUTPUT" and splitting on newlines using this --> "( $(...) )". By putting... (6 Replies)
Discussion started by: mrm5102
6 Replies
4. Shell Programming and Scripting
Guys,
I need you help please.
The script below is not working correclty for checking via a awk/if statement . Can you tell me what i am doing wrong in the script code "if($1 == "$RETENTION_LEVEL") "
Syntax
RETENTION_LEVEL=`echo $LINE | cut -f2 -d" "`
echo " ==============... (4 Replies)
Discussion started by: Junes
4 Replies
5. Shell Programming and Scripting
Hello,
I unfortunately have a process that does two things, it returns an answer to me and then does a bunch of work that I would like to wait on. Here is a simple example:
#!/bin/bash
function p_w {
echo "poopy"
sleep 10
echo "scoop"
}
foo=$(p_w &)
sleep 1
echo "1... (7 Replies)
Discussion started by: brsett
7 Replies
6. Shell Programming and Scripting
Hello,
We have an oracle database running on a Linux host (RHEL5)...I'm trying to run Oracle dbv (database verify utility) and capture its output to a file using the following syntax but the standart output does NOT get redirected to the file...
dbv blocksize=32768 ... (2 Replies)
Discussion started by: luft
2 Replies
7. Shell Programming and Scripting
Hi all, I'd like to capture the output from the 'top' command to monitor my CPU and Mem utilisation.Currently my command isecho date
`top -b -n1 | grep -e Cpu -e Mem` I get the output in 3 separate lines.Tue Feb 24 15:00:03
Cpu(s): 3.4% us, 8.5% sy .. ..
Mem: 1011480k total, 226928k used, ....... (4 Replies)
Discussion started by: new2ss
4 Replies
8. UNIX for Advanced & Expert Users
Hello,
I would like to capture the password request of a process (like passwd or smbpasswd, ...) from a C/c++ program. My idea was to use pipes, but they capture only the stdout/stdin, not the request itself (e.g. "Enter password for user tom:" is not captured by pipes).
In other words, my... (1 Reply)
Discussion started by: mousec
1 Replies
9. UNIX for Dummies Questions & Answers
Hi
I have a C++ program that generates a lot of log information on the console, I need this output (printed using printf function) to go to a file since I will use crontab to schedule the job.
I know I can do this:
myprog > myfile
but I don't know how to enter this in crontab.
I use... (3 Replies)
Discussion started by: GMMike
3 Replies
10. Shell Programming and Scripting
I have the following line in my script:
$sftpcmd $rmthost <<COMMANDS>> $sftplog 2>&1
For some reason this is not capturing the errors from sftp, they go to the file attached to the cron entry
ie
mm hh dd MM * /myscript > cron.out
any idea why?
digital unix 4.0d (6 Replies)
Discussion started by: MizzGail
6 Replies