Solved

Running sh script without outputting results

Posted on 2004-08-23
2
267 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
android secure ftp 3 70
Linux script delete files 3 57
blank screen when trying to setup Unity on Ubuntu 14.04 9 55
postfix start error! 9 51
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 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