Solved

Running sh script without outputting results

Posted on 2004-08-23
2
266 Views
Last Modified: 2010-04-20
Hello.

The following outputs text stating the results.

How can I make it do it in the background, without outputting any results?


Could I use "@" somewhere to do this?  Thanks!


#!/bin/sh
do jpegtopnm -quiet large.jpg | pnmscale -xysize 200 150 | ppmtojpeg > smaln.jpg
0
Comment
Question by:hankknight
2 Comments
 
LVL 6

Assisted Solution

by:tanelorn
tanelorn earned 250 total points
ID: 11875269
HI,

try this

do jpegtopnm -quiet large.jpg | pnmscale -xysize 200 150 | ppmtojpeg > smaln.jpg >/dev/null 2>&1

Tanelorn
0
 
LVL 22

Accepted Solution

by:
pjedmond earned 250 total points
ID: 11875473
http://www.linux.com/guides/Intro-Linux/sect_05_01.shtml

is an excellent intro to this, and will help you to understand the bit at the end of the line

The above looks good, and I can only alter it slightly:

do jpegtopnm -quiet large.jpg | pnmscale -xysize 200 150 | ppmtojpeg > smaln.jpg >/dev/null 2>&1 &

The additional & makes the process occur in the background instead of occupying the command prompt until the process finishes.

HTH:)
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Guacamole cut and paste issue 3 74
Can't See Site After DNS Resolved 7 55
How to enable sync between two yum repo? 1 32
Impact of disabling SMB v1 on Mac and Linux clients 4 377
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question