    <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
     <channel>
        <title>Linux.com :: scripting question</title>
        <link>http://www.linux.com/archive/forums/topic/1440</link>
        <description>Everything Linux and Open Source</description>
        <dc:language>en-us</dc:language> 
        <dc:creator>Linux.com Admin</dc:creator> 
        <admin:generatorAgent rdf:resource="http://www.linux.com" /> 
        <admin:errorReportsTo rdf:resource="mailto:noreply@linux.com" />
       <sy:updatePeriod>hourly</sy:updatePeriod>
       <sy:updateFrequency>1</sy:updateFrequency>
       <docs>http://backend.userland.com/rss</docs>



<div class="xarbb-noteswrapper">
</div>

   <div class="xarbb-noteswrapper">
       <div class="xar-sub rightnote">
           <div>
                    <a href="http://www.linux.com/archive/forums/topic/1235">
Previous Topic</a>
|
                    <a href="http://www.linux.com/archive/forums/topic/1483">
Next Topic</a>
</div>

           <div>
                    <a href="http://www.linux.com/archive/forums/printtopic/1440?theme=print">
Print this topic</a> |
You are not subscribed            </div>
        </div>
        <div style="clear: both;"></div>
    </div>

    <h1>
        <a class="xar-title" href="http://www.linux.com/archive/forums/topic/1440">scripting question</a>
   </h1>


   <div class="xarbb-topiccontrols">
<form action="http://www.linux.com/archive/forums?func=jump" method="post">
   <label for="xarbb_jump_menu">Forum Jump</label>
    <select name="f" id="xarbb_jump_menu" onchange="this.form.submit();">
        <optgroup label="Options">
            <option value="5" selected="selected">
Please select forum            </option>
            <option value="5">--------------------</option>
        </optgroup>
        <optgroup label="Forums">
                <option value="1">New to Linux</option>
                <option value="2">Hardware</option>
                <option value="3">Linux Distributions</option>
                <option value="4">Applications</option>
                <option value="5">Programming and Development</option>
                <option value="6">Miscellaneous Discussion</option>
                <option value="7">Linux.com Writers Forum</option>
                <option value="8">Jobs</option>
        </optgroup>
    </select>
    <input type="submit" class="button" value="Jump" />
</form>
<div style="clear: both;"></div>
   </div>

   <div class="xarbb-topiccontrols">

<span class="xar-sub">
    <a href="http://www.linux.com/archive/forums">
Forum Index    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/category/4181">
        Forums 
    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/forum/5">
        Programming and Development   </a>
</span>
<div style="clear: both;"></div>
   </div>

<div class="xarbb-tablewrapper">



   <table>
       <tr>
           <th scope="col">
Author</th>
           <th scope="col">
Message</th>
       </tr>



            <tr>
                <td class="xar-norm author">
                    <div>
                        <a href="http://www.linux.com/archive/roles/400985">iansane</a>
                   </div>
                   <div class="xar-sub">
Joined: Apr 05, 2008<br/>Posts: 1                        <br />
                        <a href="http://www.linux.com/archive/forums?by=400985&amp;func=searchtopics">
Other Topics</a>
                   </div>
               </td>

               <td class="xar-norm message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted Apr 05, 2008 at 2:12:56 AM</span>
                       </div>



<div style="float: left;">
                           <strong class="xar-sub">
Subject: scripting question                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div>
                        I'm using Ubuntu Hardy but this might apply to other distros too.

I have camouflage installed in Wine. This program takes one file and hides it inside another creating one file that looks like the first but also contains the second.
It will also un-camouflage a camouflaged file.
I want to add a launcher to the right click menu using nautilus-actions.

The problem is that I can't simply run the camouflage.exe. It requires parameters along with file names. (input, file to hide in, and output file)

I am thinking I need to wright a script or a c++ program that will ask for the file name to camouflage with, and then the file name for the new output file that actually contains both files in one. (Actually two seperate scripts or programs, one called camouflage and the other called uncamouflage.

Then add a launcher for each of the two programs or scripts to the menu.

Any thoughts on this? Am I over thinking it and missing a simpler way? Is there any reason either scripting or c++ would be preferred, one over the other?

I have all the commands needed, and a very little experience with Bash and c++. Any thoughts or  suggestions are appreciated as I look into doing this.

Thanks  </div>

                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/1440#top">
Back to top</a>
</td>
               <td class="xar-alt">

                        <a href="http://www.linux.com/archive/roles/400985">
                            <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                        </a>
                        <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=400985">
                            <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                       </a>
                            <a href="http://">
                                <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                           </a>
</td>
           </tr>





           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/379079">
                                Shashank Sharma                           </a>
</strong>

                   <span class="xar-sub">
<br />
Joined Jan 01, 1970<br/>Posts: 1657<br />
Location:New Delhi, India<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=379079&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-accent message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Apr 09, 2008 5:09:54 PM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1187153" href="http://www.linux.com/archive/forums/topic/1440#1187153">
                                    scripting question                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        That is far more that what nautilus-actions was designed to do, in my opinion.

Maybe you should ask at http://www.grumz.net/ and look through the available configuration files to maybe get an idea: http://www.grumz.net/index.php?q=configlist

Cheers!<p class="hiddensignature">
Coauthor of <a href="http://www.amazon.com/Beginning-Fedora-Novice-Professional/dp/1590598555">Beginning Fedora: From Novice to Professional</a> published by <a href="http://www.apress.com">Apress</a>.
<br><br>
Please follow the <a href="http://www.linux.com/forums/topic/1665">Forum Guidelines</a></p>
                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/1440#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/379079">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=379079">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://linuxlala.net/">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
                                <a href="http://edit.yahoo.com/config/send_webmesg?.target=linuxlala&amp;.src=pg">
                                    <img src="modules/xarbb/xarimages/new/icon_yim.gif" alt="Yahoo!" />
                               </a>
</td>
           </tr>

           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/401043">
                                fninja                           </a>
</strong>

                   <span class="xar-sub">
<br />
<br />
Joined Apr 05, 2008<br/>Posts: 55<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=401043&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-norm message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Apr 11, 2008 5:26:30 AM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1187327" href="http://www.linux.com/archive/forums/topic/1440#1187327">
                                    Re:  scripting question                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        Might wanna look into zenity,I believe it will allow you to use it in a script and have it prompt for input and such(I've never used it myself,though I've seen it used in nautilus scripts if I remember correctly).                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/1440#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/401043">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=401043">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
</td>
           </tr>

           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/379079">
                                Shashank Sharma                           </a>
</strong>

                   <span class="xar-sub">
<br />
Joined Jan 01, 1970<br/>Posts: 1657<br />
Location:New Delhi, India<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=379079&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-accent message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Apr 11, 2008 1:55:54 PM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1187361" href="http://www.linux.com/archive/forums/topic/1440#1187361">
                                    scripting question                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        Zenity is good, yes. I've written these three articles in the past that might be of some help:
http://www.linux.com/feature/114156 -- Create GUI dialogs for GNOME and KDE
http://www.linux.com/articles/55389 -- CLI Magic: Creating basic front ends with dialog and Xdialog
http://www.linux.com/feature/119603 -- Extending Nautilus context menus with Nautilus-actions

Cheers!<p class="hiddensignature">
Coauthor of <a href="http://www.amazon.com/Beginning-Fedora-Novice-Professional/dp/1590598555">Beginning Fedora: From Novice to Professional</a> published by <a href="http://www.apress.com">Apress</a>.
<br><br>
Please follow the <a href="http://www.linux.com/forums/topic/1665">Forum Guidelines</a></p>
                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/1440#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/379079">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=379079">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://linuxlala.net/">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
                                <a href="http://edit.yahoo.com/config/send_webmesg?.target=linuxlala&amp;.src=pg">
                                    <img src="modules/xarbb/xarimages/new/icon_yim.gif" alt="Yahoo!" />
                               </a>
</td>
           </tr>
</table>
</div>

<div class="xarbb-topiccontrols">

<span class="xar-sub">
    <a href="http://www.linux.com/archive/forums">
Forum Index    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/category/4181">
        Forums 
    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/forum/5">
        Programming and Development   </a>
</span>

</div>



            </channel>
</rss>
