Assistance understanding a UNIX script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Assistance understanding a UNIX script
# 1  
Old 04-16-2018
Assistance understanding a UNIX script

Hello, If I could get some assistance breaking down this Unix script in order to better understand it. A co-worker wrote this script and is no longer with us. I believe this script converts documents into .txt files, but we are trying to edit it so that it converts documents to .pdf automatically instead of .txt

*Please see attached. Thank you in advance!

Last edited by B00GS; 04-16-2018 at 06:09 PM..
# 2  
Old 04-16-2018
Quote:
Originally Posted by B00GS
Hello, If I could get some assistance breaking down this Unix script in order to better understand it.
No problem, but PLEASE: put it here in plain text format and enclosed in CODE-tags. Looking at a graphics-file in PNG-format, which will explicitly forbid copying and pasting as a means to refer to certain parts is simply ridiculous.

Thanks in advance.

bakunin
These 2 Users Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need assistance in ksh script

requirement : I need to read a text file and find out which particular line has highest charcters on it using the shell script. I tried & was able to find out only for one line. I could not able to find out for the entire the line. sed -n '10 p' ctstest.sh | wc -w Please guide me... (5 Replies)
Discussion started by: ramkumar15
5 Replies

2. Shell Programming and Scripting

Dummy script assistance

Hi, I am new in ksh scripting and if anyone can help that would be great. I'm writing a script which will SSH to several machines and then would append a certain file from a NAS to the /etc/sudoers file the problem i am having is after the script connects to a certain server the commands are... (7 Replies)
Discussion started by: galuzan
7 Replies

3. Shell Programming and Scripting

Need assistance with a simple script

I have a simple script. Do you know what I got this error? ./total_memory.ksh: line 5: ' Thanks #! /bin/bash setmem=30177660 totalMemory= grep MemTotal /proc/meminfo | awk '{print $2}' if ; then echo "Total memory $totalMemory is less than :$setmem" exit 1 ... (3 Replies)
Discussion started by: Beginer0705
3 Replies

4. Shell Programming and Scripting

script assistance with shift J

Hey all, I need some assistance. I'm writing a script to eject tapes from a tape library, but the library is not a queued system and can only eject 15 tapes at a time. I added paste -d : -s so that it goes through full_tapes and puts each media_id on one line separated by the :. Now I'm... (2 Replies)
Discussion started by: em23
2 Replies

5. Shell Programming and Scripting

Shell Script Assistance

I am looking for a shell script or command to automate a process of opening many files in a directory and changing a string of text. Example: I have a apache web server that uses virtual hosting. There are approximately 2300 vhost entries or files. So in the directory... (2 Replies)
Discussion started by: jaysunn
2 Replies

6. UNIX for Dummies Questions & Answers

Assistance with scripts for UNIX

Hello- I am new to UNIX (about 1 month to be exact) and have been trying to construct a script to create users and passwords using expect. I have the basic script worked out, which includes creating the user and password, but would like for this to be automated a little more and have it read a... (3 Replies)
Discussion started by: brughm
3 Replies

7. Shell Programming and Scripting

need assistance ----SH schell script

Hello All, I need to develop a script(SH]) to generate a comparison file between two files old and new file.The script takes in parameter the old file path and the new file path. And the script generates a file containing the comparison between the two files with this details: - Keys... (2 Replies)
Discussion started by: shahidbakshi
2 Replies

8. Shell Programming and Scripting

Need a little assistance with a shell script

I need to modify a script to send an attatched file. I have researched and read the faq's but have not found a solution for my script. Here is a copy of the code I am using: #!/bin/sh mysqldump --opt --skip-add-locks --user=****** --password=******* databasename | gzip >... (3 Replies)
Discussion started by: rickou812
3 Replies

9. Windows & DOS: Issues & Discussions

Urgent Need for Assistance: Triggering Windows bat files from UNIX

Hello, Is there a way to trigger a Windows bat file or program on a different machine from a different UNIX server using KSC file? I hope you can assist me with this. Thanks! (0 Replies)
Discussion started by: punyenye
0 Replies
Login or Register to Ask a Question