Forums Search Login Register
New Posts Todays Posts Find Users Posts Unanswered Threads Help Mark Forums as Read

Thread Options  Subscribe to this thread Subscribed Users  Add Reply  Buggy Item
[ubuntu] If there is terminal ouput then do something bash question

Is there any way to run a command only if another command produces terminal output? I want to run

netstat --tcp --numeric | cut -c 45-65 | sort -u | sed '/Foreign/d' | sed '/^$/d' | grep -e ':80' -e ':443'
and if that produces output in the shell then run
01-14-2011, 02:39 PM
Subscribe to this thread Subscribed Users  Add Reply  Buggy Item

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Question about Startup Applications and Bash script orders gandalou1 0 66 09-05-2018 10:32 PM
Last Post: gandalou1
  [ubuntu] backspace not removing previous characters in terminal and 0 50 07-30-2018 03:48 AM
Last Post: and
  Insert text using shift insert in a terminal window uleilarosariog 0 57 07-26-2018 10:36 PM
Last Post: uleilarosariog
  [other] autostarting a terminal window in Unity vfreddyhuynhp 0 63 07-20-2018 02:04 AM
Last Post: vfreddyhuynhp
  [SOLVED] BASH: Sox batch processing basementlivinguk 1 314 06-29-2018 04:29 AM
Last Post: Monday12
  [SOLVED] Back up directory question linlynn80 0 69 06-28-2018 02:12 AM
Last Post: linlynn80
  Back up directory question DonJuan 0 68 06-27-2018 11:46 PM
Last Post: DonJuan
  Text entry in Ubuntu 18.04 terminal not as typed AlisaH2006 0 71 05-31-2018 03:23 AM
Last Post: AlisaH2006
  [ubuntu] Redirect stderr of timeout in bash uleilarosariog 0 68 05-29-2018 08:19 AM
Last Post: uleilarosariog
  Upgraded from 16.04 to 18.04 LTS from Terminal bfrankgonzaluuu 0 67 05-21-2018 05:48 AM
Last Post: bfrankgonzaluuu

Forum Jump:

User(s) browsing this thread: 1 Guest(s)

Contact Us Privacy Policy Top RSS
Forum Software By: MyBB, © 2002-2019