General :: Page 2 - Get Basename Without Extension Not Working?
Mar 12, 2011
Quote:Originally Posted by SimonJM It almost smacks of your script being wrapped up in something elseGot it sorted, did the logic in PHP and linked directly to ffmpeg
View 2 Replies
ADVERTISEMENT
Mar 4, 2011
Trying to get the basename of a file without the extension, I found this snippet but it just returns command not found twice:
[Code]....
Also tried (with and without the quotes on input and file_ext):
input=$1
file_ext=.${input##*.}
base=`basename "$input" $file_ext`
executed: convert.sh /path/music.wav But it echoes base as music.wav
View 14 Replies
View Related
Sep 8, 2011
The back.sh script is being run as user basil, whcih means that when it comes to copying the backup file to the target location you do not have the correct permissions to access the contents of the directory (it is rwx by root only).So, what do we do? Hoping it is ONLY the directory permissions which are fouling things up we have a range of options which, in not particular order of 'good', include:
a) change ownership/permission on target directory.
b) have the back.sh script run by the root user
c) set up sudo to permit the file copy to be done by root
d) use setuid on the back.sh to have it run, effectively, as root
A lot of the answer will depend upon what else the Dropbox directory is for. If it's JUST for your backups for this then I'd be inclined to:
Code:
chown basil /root/Dropbox
chmod g+rwx /root/Dropbox
which will permit the basil user full access and thus allow the file operations being done and give root access via the group permissions (not that the root user really needs this).Also, I'd be inclined to:
Code:
chown basil /home/xxxx/moo3/bin/back.sh
chmod u=rwx,g=rx,o= /home/xxxx/moo3/bin/back.sh
which will make things 'look' better, it just reinforces the point that the script is run (and owned) by the basil user.
View 3 Replies
View Related
Jun 17, 2011
I get this behavior on Slackware 13.37, which includes BASH 4.1.010. Yes, BASH is my shell. I have a file called a.flac and I'm in the directory that contains it.
The output of the ls command is expected:
Code:
ls *.flac
gives:
Code:
a.flac
Removing the extension with basename works as expected:
Code:
basename a.flac .flac
gives:
Code:
a
Putting the above command in a variable substitution works as expected:
Code:
echo `basename a.flac .flac`
gives:
Code:
a
Using xargs with ls and a variable substitution works as expected:
Code:
ls *.flac | xargs -i echo `echo {}`
gives:
Code:
a.flac
However, when I try to add the basename command to the above command, it stops working.
Code:
ls *.flac | xargs -i echo `basename {} .flac`
gives:
Code:
a.flac
Whereas the result I expect is:
Code:
a
Why is it not working, and how do I make it work?
View 3 Replies
View Related
May 10, 2010
How can I find page hit and page miss ratio in linux fedora core 12?
View 3 Replies
View Related
Aug 19, 2010
Enterprise Linux 4 (2.6.9-78 kernel)...rename not working! Need to insert "_T" at the end of every file in a directory, just before the ".extension"
I have tried sed substitution with no success (because I do not know the codes and effects of anchoring well enough).
An example filename:
My failed tests:
Code:
Code:
Code:
Code:
View 9 Replies
View Related
Jul 26, 2010
All has been fine with my emails but today morning when i tried to log on I got an error message "You must be logged in to access this page, go to logon page" I dont understand why even when i supply my correct user name and password.
View 2 Replies
View Related
Aug 22, 2010
i just downloaded and installed opensuse 11.3 64 bit kde on my laptop.
all my hardware seems to be working fine.
i installed the drivers for my nvidia video card, and 3d is working along with kde's desktop effects.
i installed all my favourite firefox extensions including video downloadhelper downloadhelper - media download firefox extension an extension that can download videos from videos and other video sites.
all of my installed firefox extensions seem to be working except video downloadhelper.
when i try to download videos with it nothing happens.
previously i had opensuse 11.2 gnome 64 bit installed on my laptop, and the video downloadhelper extension worked fine.
i think this problem might have something to do with the way opensuse integrates firefox with kde.
View 4 Replies
View Related
Aug 29, 2010
I installed the banshee-extension-lyrics addon from the repos and it doesn't seem to have any effect on Banshee. I've searched through Banshee's Preferences and the Lyrics option is already checked under the Extensions tab, but it doesn't work.
There is an option for the lyrics to be displayed is in the context pane, but it always says the same thing:
Quote:
Song Name Lyric
[URL]
Powered by LyricsPlugin [URL]
The problem, then, is that although the Lyrics option is available and does something, it doesn't display actual lyrics!
View 7 Replies
View Related
May 2, 2011
I found this extension [URL]
But haven't been able to get it working.
I copied the files to the mentioned directory ~/.local/share/gnome-shell/extensions/
I tried setting the file permissions to full
Code:
david@aitdes2:~/.local/share/gnome-shell/extensions/gnomeshell@pidgin.im$ ls -l
total 24
-rwxrwxrwx 1 david david 14219 2011-04-29 18:31 extension.js
-rwxrwxrwx 1 david david 163 2011-04-29 18:31 metadata.json
-rwxrwxrwx 1 david david 177 2011-04-29 18:31 stylesheet.css
No idea what else I could try.
View 9 Replies
View Related
Mar 24, 2010
Basically when trying to activate Normal or Extra visual effects on a new karmic installation, I get the error message "The Composite extension is not available".
Here is my xorg:
View 9 Replies
View Related
May 2, 2010
When i have enable xinerama for 2 displays and i enable visual effect it says The "Composite extension is not available" but i have enabled it in "xorg.conf" but effect are working with not enabled xinerama.
Here is my xorg.conf
Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@palmer) Fri Apr 9 10:35:18 UTC 2010
Section "ServerLayout"
# Removed Option "Xinerama" "0"
[Code]...
View 5 Replies
View Related
Jul 6, 2011
I want to combine 4 ps(or pdf) page to single page and for this i have try a2ps command as:
a2ps -4 1.ps 2.ps 3.ps 4.ps -o outfile.ps
Event through it divide the page into four section. But only give one output of my four input. other three section is blank. Is i am doing some wrong or Is their any other command to do so.
View 3 Replies
View Related
Aug 11, 2011
Vim: substitute for Page Up and Page Down keys?
View 4 Replies
View Related
Dec 28, 2009
After upgrading to 11.2, I get the following error when starting any xclient. Worse, its usually repeated a few times for each client.
Xlib: extension "Generic Event Extension" missing on display <my_ip>
I get this both when using Xming and nomachine.
View 2 Replies
View Related
Apr 5, 2010
I am able to use Last fm. via their web page, but I can not get it working in Rythm box. I think I am missing a peice to the puzzle . when I select it, my user name appears in the login box , but when I enter the password nothing happens and the same password works fine on their web-site ..
View 1 Replies
View Related
Aug 19, 2010
i have an html page with a text box in a fourm, and am trying to change the value of it with javascript, but it not working. ive tried about everythin i can think of and find, but it just doesn't work. it all allways comes down to the <form>,</form> tags or the <input> tag doesn't exist. I know im getting the names right,(copy&paste)
View 1 Replies
View Related
Mar 2, 2011
I have typed the following code:
Code:
<html>
<form enctype="multipart/form-data" action="upload.php" method="POST">
[code]...
View 3 Replies
View Related
Jan 23, 2010
I installed ubu server 9.10 on my desktop, then I tried to install webmin and I was able to do that too. When I try to connect to webmin I get "page cannot be displayed" so I thought let's change the port...I changed to port 443 as recommended on the website.
Here is the miniserv.conf:
port=443
addtype_cgi=internal/cgi
realm=Webmin Server
logfile=/var/webmin/miniserv.log
errorlog=/var/webmin/miniserv.error
pidfile=/var/webmin/miniserv.pid
logtime=168 .....
Now I tried connecting using the ip address and the hostname. I also tried with http and https
https://hostname.com:10000 and 443 ... no go.
View 9 Replies
View Related
Sep 24, 2010
Has anyone else had the "LastPass" password extension stop working on the latest Chromium builds?
View 2 Replies
View Related
Mar 13, 2011
Has anyone managed to get the moonlight extension which enables one to watch Sky TV working in slackware? I have the extensions for firefox and chrome but all I get is a blank screen.
View 5 Replies
View Related
Mar 16, 2010
I am using OO 3.1 on Karmic 9.10. When working with Open Office Writer and either graphics or charts, a couple of things happen. First of all, the page position moves around. For example, if I click on a graphic I have inserted or on a chart, the page on my screen may shift up or down by a half inch or so. If I click back out in a text area, the page moves back to where it was. This is very annoying. Has anyone else had a problem like this? I have tried turning off compiz completely but it doesn't fix it
View 1 Replies
View Related
Jan 6, 2011
I am a very new Linux user (newb) so I could be missing something very obvious. I have a Toshiba Satellite L645D-S4056 and recently installed Fedora 14 (64-bit GNOME) with all sorts of updates and software.
I'm working my way through all of the hardware to get it all running properly. I figured out how to get the RealTek wireless-n adapter working. The webcam is working even with Skype which is tricky on the 64-bit version.
At the moment, my touchpad doesn't work. I see a lot of articles online about the touchpad not double-tapping, but mine doesn't work at all. I've been using a mouse for all my GUI stuff.
I went to SYSTEM --> PREFERENCES --> MOUSE and selected the touchpad tab, but I can't figure out how to make it work.
View 1 Replies
View Related
May 11, 2011
I've been looking for this downloading software so i found it with an extension of .tar.gz !! It creeped me out because like in Windows i expected "next".."next".. then "finish"..goosh it was something else! how to instal it to my new "Ubuntu Deskop",
View 2 Replies
View Related
Nov 23, 2009
On FC11 64 bit with Adobe flash plugin for Linux installed, I see segfault errors from "npviewer" in /var/log/messages. The only browser I have tried yet, Firefox, has glitches every now and then. Sometimes it shows the title of a page in a tab, but the page is blank. This can even happen when I try the Google main page. Is it true that npviewer has something to do with Adobe flash? Is there a way to fix the problem? If it is caused by Adobe flash, is there a different plugin that will replace Adobe flash player?
View 1 Replies
View Related
Oct 12, 2010
i am able to try ubuntu and everything works fine until i try to install. the menu comes up to the first page where it tells you to plug in your machine and make sure there is enough disk space and network connectivity. when i hit next on this page the mouse icon changes but the next page never loads. the longest i let it hang there was 2 hours. ive tried multiple times with the same result.
im running from a flash drive on an ASUS Eee PC 1001P-PU17
View 4 Replies
View Related
Aug 13, 2010
i have just installed peppermint ice and the default browser is chromium but when i used firefox there was a up and down arrow at the side of a web page,there is no arrows in chromium and i was wondering if anyone knows if there is an extension to install one in chromium?
View 6 Replies
View Related
Mar 2, 2010
I am trying to access a .dd file extension. Do I have to mount it?
VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd
# fdisk -ul VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd
Blocks Id System
VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd1 8192 1535999 763904 5 Extended
VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd4 * 32 8191 4080 4 FAT16 <32M
VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd5 8224 106495 49136 6 FAT16
[Code].....
I am trying to grab some files off this file to create a PXE vmware boot.
View 2 Replies
View Related
Mar 2, 2010
I am developing an extension for firefox that enables users to chat with any others who happen to be browsing the same website at the same time. The xul file adds a tool bar with a button "Enable Chat" in the browser toolbox. when a user clicks the Enable chat button, the server initiates the chat. I went through many tutorials for extension development. They have helped. But I cant seem to get my extension up properly. Ill just put up the contents of my files for extension..
/home/neethusha/extensions/blaze (blaze is the name of the extension)
chrome/content/blaze.xul
install.rdf
chrome.manifest
[Code]....
I made the pointer to the extension in a file named "blazebutton @anywhere.com" and saved it in the firefox profile folder "/home/neethusha/.mozilla/firefox/d5ma3rr9.dev/extensions"
When i open the firefox in this profile, the extension is not loading...
View 3 Replies
View Related
Aug 8, 2011
#!/bin/csh -f
source /xxxx/
set $spicedir = `sim_${1%.*}`
printf "Output folder is %s
" $spicedir
toolcommand -i $1 -o $spicedir
(-o output directory, -i =input)
I got spicedir: Undefined variable in my xterm
How could I match a file name without extension in csh
View 1 Replies
View Related