LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-22-2009, 02:43 AM   #1
ravidangaych
LQ Newbie
 
Registered: Apr 2009
Posts: 27

Rep: Reputation: 15
Question problem in dialog


hii

I want Output of sidewindow6.sh in first dialog

and message box as second dialog

I want to see changes of file side in first dialog box

cat /bin/w.sh
#!/bin/bash
sidewindow6.sh &
dialog --backtitle "Select" --no-shadow \
--begin 0 0 --no-collapse --tailboxbg side 15 100 --and-widget \
--begin 13 10 --msgbox "Press OK " 5 30
sleep 2

[root@station12 ~]# cat /bin/sidewindow6.sh
#!/bin/bash
k=0
while :
do
((k++))
iptables -nvL -t filter > FILE
num=`wc -l FILE | awk '{ print $1 }'`
sed -n "1p" FILE | awk '{print $2 $3 $4}' > side1
for((i=1;i<=$num;i++));do
a=`sed -n "$i p" FILE`
if test -z "$a"; then
((n2++))
let temp=$i
((temp++))
sed -n "$temp p" FILE | awk '{print $2 $3 $4}' >> side1
fi
done
if test "$k" -eq 4;then
let k=1
fi
rpm -qf /sbin/iptables > side
sed -n "$k p" side1 >> side
mii-tool >> side
echo " " > side
sleep 1
done

Last edited by ravidangaych; 06-22-2009 at 02:45 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK message dialog, problem with default response simopal6 Programming 1 03-22-2012 03:26 AM
Dialog box problem with Wine KMinOZ Linux - Software 4 09-30-2006 01:58 PM
Problem with GNOME Save dialog General Linux - Software 1 11-20-2005 03:32 AM
problem transfering result of search to a dialog box JoannesX Programming 3 02-07-2005 05:59 AM
problem with ncurses-dialog checklist MikTheUser Programming 1 08-07-2004 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration