LinuxQuestions.org
Help answer threads with 0 replies.
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 03-20-2016, 05:27 AM   #1
GoldenDracoa
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Rep: Reputation: Disabled
Question How to run a command from a program while having only .rpm file ?


Hi ! I don't really know where to post this

So, here is the context :
I'm coding a steganography program blablabla, and I want it to run under windows AND linux. The only problem is about Steghide (you can find it here : steghide.sourceforge.net ) I downloaded the windows AND the linux pack. So, when I call the function, I call the .exe version (of course). But, I don't know how I can call the steghide from the .rpm function Do I have to install the package via my program ? Or is there a way to make it run easier ?

Thank for reading, I hope it was correctly said waiting for your answer ! <3
 
Old 03-20-2016, 08:32 AM   #2
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
Could you give us a little more information?
We can probably help more if we know which linux distro you are using.
 
Old 03-20-2016, 11:42 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
rpm's are" RedHat Package Manager " compresed archives

somewhat like a zip or a rar or a Microsoft .msi

you install them on redhat based operating systems

also looking at that SF page
this thing is ANCIENT
the rpms are for suse 8 from 2003
they are 13 YEARS OLD

and will not run on modern operating systems


WHY do you need such a OLD and out of date program ?

Last edited by John VV; 03-20-2016 at 11:45 AM.
 
Old 03-20-2016, 12:35 PM   #4
GoldenDracoa
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
petelg : Here my machine is a windows, but the program has to be able to run under debian linux (wheezy or jessie)

It's a Java program, here is the part of code concerned if you need to read it :

Code:
        System.out.println("Starting Extraction");
        File tmp = new File ("resources"+p+"embedMsg.txt");
        String[] cmd = new String[]{"","extract", "-sf resources"+p+"receiv.bmp", "-xf resources"+p+"extractMsg.txt", "-p "+passphrase};
        if (os.contains("Windows")) {
            System.out.println("Windows OS detected");
            cmd[0]="resources"+p+"steghide"+p+"steghide.exe";
        } else {
            System.out.println("Other OS detected");
            cmd[0] = "resources"+p+"steghide"+p+"./steghide"; //HERE i don't no what to write, so I wrote this. There is only the .rpm here
        }

John VV : I didn't know about this :s It's because it's the file I found, I thought I just had to use it... :s
 
Old 03-20-2016, 01:34 PM   #5
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
Quote:
Originally Posted by GoldenDracoa View Post
petelg : Here my machine is a windows, but the program has to be able to run under debian linux (wheezy or jessie)
If you're trying to run a rpm on debian you will have great difficulty anyway. But as JohnVV points out it's not been touched for 13 years so is not going to work even on an rpm system like Red Hat or openSUSE.

I'm not sure why you want a linux program for an MS Windows system though.
 
Old 03-20-2016, 01:47 PM   #6
GoldenDracoa
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
petelq :
Well, it's a project I have to do :P and, I'm coding on windows, but there is a risk that my teacher will test it on linux.. And, I can't execute steghide.exe in linux xD not automatically xP

Well, anyway, it there really is no way to use it, I will find a way to force him to help us >.<
 
Old 03-20-2016, 03:29 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Microsoft Windows *.exe files will NOT run on a linux Operating system
just like they will not run on Apples OSX mac's

you could build this ancient 13 year old source code
but with it being 13 years out of date , it is something i my self would NOT do because it will be a HUGE pain in the rear end
-- hemorrhoids pain ---

https://sourceforge.net/projects/ste...teghide/0.5.1/

the source
steghide-0.5.1.tar.gz

read the README file for the prerequisites like
libmhash
libmcrypt
libjpeg
zlib
but you are going to need the 13 year old VERSIONS of these programs
 
  


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
List of RPM's in a text file: how to run rpm -qa against all of them chudster Linux - General 5 12-24-2010 09:45 PM
how to run .exe file as we run the samwe in windows chandrala13 Linux - Newbie 2 05-22-2008 05:30 AM
How do I run a software with .rpm ext. on Windows? fayezderya General 8 10-06-2007 09:42 PM
How to run command-line? How to extract RPM? How to install SAMBA? azmadar Linux - Newbie 7 09-09-2004 05:18 AM
Installed RPM/tar file, cant find out how to run it Craneology Linux - Software 4 03-01-2003 08:10 PM

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

All times are GMT -5. The time now is 10:02 PM.

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