01-22-2015
Oook, guess i've figured...
The 'common' shebang of /bin/bash wont work when bash is in /usr/local/bin/...
The error was refering to the shebang, not the command itself, sorry.
/solved
This User Gave Thanks to sea For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i messed up while installing freebsd into a dual os wannabe system.
Now, how do i del it( so i wouldn't get prompted to choose freebsd during boot?)so that i could try installing a different flavour of linux?
cheers:eek: (1 Reply)
Discussion started by: coffeecoolers
1 Replies
2. UNIX for Advanced & Expert Users
i'm following the, "How to setup and secure Snort, MySQL and Acid on FreeBSD 4.6 Release" off of the snort.org website.
in the documentation it says snort should be installed through the following:
-----
make -DWITH_MYSQL -DWITH_FLEXRESP ; make install
-----
later it says to do the... (13 Replies)
Discussion started by: xyyz
13 Replies
3. UNIX for Dummies Questions & Answers
hello,
i have a problem installing a d-link dwl-510 wireless network card on freebsd 4.8
first, i already successfully installed a dwl- 500 (which is a pcmcia card in a pci card) by adding just a few simple lines to my /etc/rc.conf
pccard_enable="YES"
pccard_mem="DEFAULT"... (0 Replies)
Discussion started by: termiEEE
0 Replies
4. BSD
Forgive the newbie question. I've been trying to install FreeBSD 5.4 on a new AMD64 based box at work today, and I started running into problems. Maybe some background is appropriate? Here goes...
I've finished the first stage of development of a model in C++ which simulates airflow through a... (1 Reply)
Discussion started by: ForestryJim
1 Replies
5. Linux
why is my new freeBSD hanging at setting up hostname each time I plug in the network cable i use host name like X.ng I intend to configure it as a gateway (2 Replies)
Discussion started by: AkinOkin
2 Replies
6. BSD
Hi all, I'm new to the world of Unix/Linux (though not to computing in general) and I'm having a few issues installing FreeBSD (v6.2).
Firstly, I realise that it's not the most user-friendly of distros, especially for newbies, but it's what I'm required to install so unfortunately I have to... (2 Replies)
Discussion started by: Techmonkey
2 Replies
7. Programming
Hello there,
My mulithreaded application (which is too large to represent the source code here) is crashing after installing FreeBSD 7.1-RELEASE/amd64.
It worked properly on others machines (Dual Cores with 4GB of RAM - FreeBSD 6.2-RELEASE/i386).
The current machine has 2x Core 2 Duo... (1 Reply)
Discussion started by: Seenquev
1 Replies
8. Shell Programming and Scripting
Hi,
This is my first thread on Unix forums, so be gentle.:o
I'm trying to write a simple start/stop script for my wireless networking adapter, under FreeBSD, using the rc.subr framework.
#!/bin/sh
# PROVIDE Wireless
# KEYWORDS shutdown
. /etc/rc.subr
name="wireless"... (1 Reply)
Discussion started by: regexp
1 Replies
9. Programming
hi all,
i have made my machine a freeBSD machine instead of a centos machine and my script doesnt work anymore and i was wondering if anyone can help me into why, i thought the commands are the same, here it is -
#!/bin/bash
source=/vol/cha-work/_ARCHIVE/to_be_archived/audio... (9 Replies)
Discussion started by: robertkwild
9 Replies
10. UNIX for Advanced & Expert Users
This is a cross post as I haven't got any solution and I'm badly in need of one.
I've installed Slackware 14.2 in /dev/sda1 and x86Solaris 10 U6 in /dev/sda3 (sda2 is Linux swap)and boot menu was Solaris grub but, later deleted Solaris partition and installed FreeBSD12 (for i386) on the same... (3 Replies)
Discussion started by: vectrum
3 Replies
LEARN ABOUT LINUX
alien::package::rpm
Alien::Package::Rpm(3pm) User Contributed Perl Documentation Alien::Package::Rpm(3pm)
NAME
Alien::Package::Rpm - an object that represents a rpm package
DESCRIPTION
This is an object class that represents a rpm package. It is derived from Alien::Package.
FIELDS
prefixes
Relocatable rpm packages have a prefixes field.
METHODS
checkfile
Detect rpm files by their extention.
install
Install a rpm. If RPMINSTALLOPT is set in the environement, the options in it are passed to rpm on its command line.
scan
Implement the scan method to read a rpm file.
unpack
Implement the unpack method to unpack a rpm file. This is a little nasty because it has to handle relocatable rpms and has to do a bit
of permissions fixing as well.
prep
Prepare for package building by generating the spec file.
cleantree
Delete the spec file.
build
Build a rpm. If RPMBUILDOPT is set in the environement, the options in it are passed to rpm on its command line.
An optional parameter, if passed, can be used to specify the program to use to build the rpm. It defaults to rpmbuild.
version
Set/get version.
When retreiving the version, remove any dashes in it.
postinst
postrm
preinst
prerm
Set/get script fields.
When retrieving a value, we have to do some truely sick mangling. Since debian/slackware scripts can be anything -- perl programs or
binary files -- and rpm is limited to only shell scripts, we need to encode the files and add a scrap of shell script to make it
unextract and run on the fly.
When setting a value, we do some mangling too. Rpm maintainer scripts are typically shell scripts, but often lack the leading shebang
line. This can confuse dpkg, so add the shebang if it looks like there is no shebang magic already in place.
Additionally, it's not uncommon for rpm maintainer scripts to contain bashisms, which can be triggered when they are ran on systems
where /bin/sh is not bash. To work around this, the shebang line of the scripts is changed to use bash.
Also, if the rpm is relocatable, the script could refer to RPM_INSTALL_PREFIX, which is set by rpm at run time. Deal with this by
adding code to the script to set RPM_INSTALL_PREFIX.
arch
Set/get arch field. When the arch field is set, some sanitizing is done first to convert it to the debian format used internally. When
it's retreived it's converted back to rpm form from the internal form.
AUTHOR
Joey Hess <joey@kitenet.net>
perl v5.12.3 2011-06-11 Alien::Package::Rpm(3pm)