LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-31-2010, 04:01 AM   #16
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198

Quote:
Originally Posted by jaikris View Post
how can i rename the original rm to some other name ( /bin/rm-old ) , if am doing this whether i should mention any where so that kernel can identify the original rm is in new name /bin/rm_old
Don't. You leave the original rm alone. If you want to have your own rm command just for your own use then you put this in to ~/bin and then add ~/bin at the start of your $PATH.
 
Old 05-31-2010, 04:35 AM   #17
jaikris
Member
 
Registered: Sep 2009
Posts: 31

Original Poster
Rep: Reputation: 15
i just need both /bin/rm & /bin/rm_old under /bin , pls suggest ..
 
Old 05-31-2010, 04:13 PM   #18
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by jaikris View Post
pls suggest ..
My suggestion is that you are trying to do the wrong thing in the wrong way.

You are (seemingly) trying to replace rm with a version of your own. You will have to be root to do this. You will create a system that looks to have been 'hacked' in that one of the system utilities has been changed completely.

My feeling is that if you described what you were trying to do overall, rather than how you are trying to do it, there would be a better way.
 
Old 05-31-2010, 05:12 PM   #19
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
I now have the feeling that this thread refers to the same problem as this other thread; in that case, I stand by my answer in the previous post.

It is pretty much the same direction as you had received from a couple of posters there, although I had been hoping for more information to confirm that I had understood correctly.

Last edited by salasi; 05-31-2010 at 05:15 PM. Reason: typo; additional info
 
Old 05-31-2010, 05:28 PM   #20
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
I agree. This whole 'rm' idea is severely flawed to begin with. See other thread.
 
Old 06-08-2010, 02:15 AM   #21
jaikris
Member
 
Registered: Sep 2009
Posts: 31

Original Poster
Rep: Reputation: 15
how to configure Tata Photon+ USB modem in LINUX , while giving wvdial /etc/wvdial.conf , no usb modems are detecting


given lsusb -v , not able to find the the Tata Photom + model

can you pls suggest
 
Old 06-08-2010, 02:32 AM   #22
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by jaikris View Post
how to configure Tata Photon+ USB modem in LINUX , while giving wvdial /etc/wvdial.conf , no usb modems are detecting
The first thing to do would be to start a new thread in an appropriate location and with an appropriate title.
 
Old 06-08-2010, 02:53 PM   #23
jaikris
Member
 
Registered: Sep 2009
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks for all , with all your support i could build a rpm which creates two new binaries "remove " & "recover " .

while installing the rpm , in the target machine i need to add one alias for the binary "remove "

where should i include the script , in the rpm build itself should i include the script , or any other alternatives , so that while installing the rpm , automaticaly a new alias also setting in the target machine , pls suggest.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
create a rpm for sshdfilter travisray2004 Programming 2 11-16-2008 03:42 PM
how to create a RPM jp-lack Linux - General 1 05-04-2007 06:57 AM
Create Rpm sjacobs Linux - Software 0 11-03-2005 07:19 AM
Create a RPM of webpages. sachinnshah Linux - General 3 06-03-2004 08:40 AM
How can I create an RPM file mayankjohri Linux - Software 1 04-16-2002 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:51 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