Solved

Running sh script without outputting results

Posted on 2004-08-23
2
265 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Virtualizing very old guest OS 4 80
Adding more CPU cores to a Linux VM 5 64
mcrypt_create_iv() is deprecated 4 76
Coding C# in Linux 8 33
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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 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…
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now