General :: Get And Save And Then Use The PATH Value To Make Cd Script?
Nov 29, 2010
I am trying to figure out a way to make my own cd script.. i thought that prompting the user to type in her destination then saving that input to PATH system variable will get it done! but it does'nt work here what i made (i think it's not that smart!)
[Code]....
View 4 Replies
ADVERTISEMENT
Jun 16, 2010
my mediacenter is attached to an beamer with the optimal resolution of 1280*720 ubuntu 10.04 doesnt offer me this revolution (on my intel 915 graphis controller). this means i have to add this resolution to the possible resolutions. first i used cvt
Code:
cvt 1280 720 60
and got this result:
Quote:
# 1280x720 59.86 Hz (CVT 0.92M9) hsync: 44.77 kHz; pclk: 74.50 MHz
Modeline "1280x720_60.00" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync
then i added this to xrandr
Code:
xrandr --verbose --newmode "1280x720" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync
and
Code:
xrandr --verbose --addmode VGA1 1280x720
now i can select and use the new resolution - until next reboot. after an reboot 1280x720 is again not available. even if i work with sudo - the resolution isnt there....
View 1 Replies
View Related
Sep 6, 2011
I want to sync remote database copy using command
As it's result command creates file /backup/snapshots/backup/databases/mysql.sql. How can I force it to put file in /backup/snapshots/mysql.sql? It's mandatory that source must be remote (it's part of more complex script).
View 1 Replies
View Related
Feb 19, 2011
I found this script [URL].. Basically this is a shortcut for cd-ing my file system..
I can type "save nm" where "nm" is any short name for the directory, like "blog" or "blg" Then whenever I want to go to nm I'll just use 'cd nm'
But it is not working out for me, I get this error every time I enter save:
bash: save: command not found
bash: parse_git_branch: command not found
So How can I make this command work?
View 1 Replies
View Related
Oct 6, 2010
I was happily using Shutter in 9.10 with no problems, but since upgrading to 10.04 there's been a problem with the default save path - every time shutter is restarted, it moves down one notch. If the original save path was /home/vacri/pictures/image-manip, the next time it is /home/vacri/pictures, then /home/vacri, all the way down to just /
Which, of course, it can't write to. Either way, it's not saving screenshots where I want them.
A friend running Mint that's also based on ubuntu 10.04 is having the same issue.
View 2 Replies
View Related
Sep 30, 2010
is there a way to make a symlink that redirects to the directory rather than acting as an alternate path? In other word, what I have now is:
[Code]....
I want my pwd to be the hardlink pwd rather than the symlink pwd after changing my directory.
View 2 Replies
View Related
Jan 16, 2011
I found the following function in /etc/profile file.
[Code]...
1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??
2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH
View 14 Replies
View Related
Oct 8, 2010
I use this command:
Code:
find ./ -atime +360
to figure out the files that haven't been accessed since 360 days. The command above will return results like this:
Code:
/uploads/2010/02/some-file-name.ext
/uploads/2009/08/another-file-name.ext
... etc
I'm taking here about tins of directories, thousands of files. I'm looking to find a command that makes me able to move the results above to another path, and to create that path once it doesn't exist like below:
Code:
mv /uploads/2010/02/some-file-name.ext /old-files/uploads/2010/02/some-file-name.ext
But I want the executed command to create this path
Code:
/old-files/uploads/2010/02/
If it doesn't exist.
View 6 Replies
View Related
Feb 21, 2011
I have a program that takes a relative path as input appends it to a some path string to get the actual path.
Now all I can input is the relative path. So if I want to go one level above my input will be ../mypath.
If I know the depth of the path used internally, I can use .. as many times to go to the root directory and then give the absolute path. But suppose I do not know the depth of the directory, can I construct a relative path string such that it considers it as a relative path. One way could be to have enough .. in the path string so that I can force an absolute path for some maximum depth of path.
Is there some path string syntax that I am not aware of but can achieve this?
View 2 Replies
View Related
Apr 26, 2011
Experimenting with shell variables, accidentally deleted the path variable how could I return to the original path value. What kinds of problems will I have if I don't have a path variable.
View 3 Replies
View Related
Sep 14, 2009
I have a path c:windowsackup I need this string to be changed into /windows/back/up I used the command -bash-3.00$ echo windackup | sed 's/\//g' but the output is windbackup
View 7 Replies
View Related
May 31, 2011
Current script:-
prefix=user@my-server:
find . -depth -type d -name .git -printf '%h�' | while read -d "" path ; do (
cd "$path" || exit $?
[code]....
How shall i go about changing the absolute path to relative path, so that /home/git/mirror/android/adb/ndk.git gets converted to /mirror/android/adb/ndk.git //echo <command> "$prefix$PWD.git" ?? - anything for relative path?
View 7 Replies
View Related
Aug 10, 2010
in order to play "Gish" - I need to cd .gish./gish- otherwise it won't find it's files - it need the working path, how can I put that in a sigle line in my games menu ?
View 2 Replies
View Related
Jan 31, 2010
Installed Filezilla FTP-client, and wants to save the downloaded files to my external OneTouch4 HDD. In Windows, you've got letters for different drives, like c: d: and so on. I understand my external HDD is /dev/sdb1/ in Ubuntu (9.1). My local place is just called "/" in Filezilla,I guess this refers to my root.It shows different folders, like bin, boot, cdrom, dev etc. When I try to type in /dev/sdb1/ here, I just get an error saying it does'n exist, or cannot be accessed.
PS: My external hdd is mounted, it has its own icon on the desktop.
View 4 Replies
View Related
Apr 25, 2009
Totem didn't play .avi movies by default after my new CentOS 5.3 install. In my effort to find a way to fix it I learned in another forum that installing VLC allows almost all video formats to be played. So I added RPMForge to my repository group then I found and installed VLC with no problem.
Now that VLC is installed and I've had a chance to use it, I've learned that it fails to save my brightness setting between launches. This is very frustrating because the default brightness is always too dark, which means I have to go to the controls and reset it every time I launch the software. Does anyone here know how I can save my brightness setting between launches?
View 1 Replies
View Related
Sep 1, 2010
Morning all , not sure how to put this. I have a .sh executable script I use for video encoding. I want the system to be able to see it no matter where in which folder I am. I want to be able to execute that script in terminal in any folder. How can I make it part of the system path. ? Don't know if my wording is right but I think you guys know what I mean.
View 9 Replies
View Related
Nov 26, 2010
How can I make a usb live cd and save changes to the same usb stick?I have the unetbootin program and plan to install ubuntu on my 4 gig flash drive. What do I need to do to save the changes and preferences and even install a few programs to it. I essentially want it to behave the same way as if I had installed it to my hard drive except with a 4 gig memory limit.
View 5 Replies
View Related
Jan 6, 2011
Textpad on Windows did a great job with this. How to make gedit save tabs when closing and reopen the files when restarting?
View 2 Replies
View Related
Apr 15, 2010
I recently downloaded the program cronometer (calorie counter) and I love it. It is run using a script I wrote (its a java program) that is in the directory of the program files (so the program does not appear under any of the application menus). The script functions only when it is in the destination folder. I did make the script executable. A symbolic link to the file also works but again, only when in the same folder. When I try to make a launcher on the desktop or in CairoDock, citing the script path as the command, nothing happens. I have tried it with both "bash" and "sh" prefixes on the command without success. Any ideas on how I could get this launcher to work?
View 1 Replies
View Related
May 6, 2010
I'm just starting with OpenProj and wonder if anyone has any tips to speed my progress.
I've netsearched for introductions, tutorials, HOWTOs etc. and found very little.
Importantly I'd like to change the default font used on the display, to make the characters larger and bolder; the default is a strain to read.
Less importantly is there any way to make OpenProj use the desktop file open/save dialogs, rather than its own?
View 1 Replies
View Related
Sep 4, 2010
I installed fedora 13 in its LXDE flavor in my laptop. I noticed when it goes to save energy mode, the TFT retro-illumination is not turned off. The display just stays black with light. How to make the display to turn off when the system enters in save energy mode?
View 4 Replies
View Related
Aug 6, 2010
Am quite new to Ubuntu (10.04) and have recently reinstalled XP. I want to make an image of my windows partition to save time and effort when wanting to restore this. I read the Ubuntu documentation on Drive Imaging [URL]..community/DriveImaging and am wondering if I've done things ok?
I've booted using the Live CD. Windows is on sda1 and is a 50GB partition. I have a hidden ntfs partition on the same hard drive at sda9 of 10GB. The first time I tried this I got an error regarding my output file saying "Not a directory". I'm assuming that was because I hadn't mounted sda9. It also reported an error saying permission denied on sda1. I then mounted sda9
Code:
sudo mount /dev/sda9 /mnt
I then changed to root as I thought not being in that was why I was getting the permissions error.
Code:
sudo -s
I've then done the following;
Code:
dd if=/dev/sda1 bs=1024 | gzip > /mnt/sda1.bin.gz
The terminal window is just showing a flashing cursor in the bottom left corner under the above command line input. Is the fact that my mount partition being smaller than my windows partition going to cause a problem or will gzip solve that? My Windows install occupies about 7.5GB of the 50GB partion.
I'm not sure if dd is just taking a long time to complete the task???
View 9 Replies
View Related
Jul 12, 2011
kernel 2.6.21.5, slackware 12.0
GNU bash 3.1.17
Code:
As you can see, /usr/local/bin is in the path. However, bash does not look for nasm in /usr/local/bin.
If I am root, things go well:
Code:
View 16 Replies
View Related
Apr 14, 2011
I'm working on a Soekris net4801 that is running an unknown distro of Linux. The kernel is 2.4.29, and iptables is v1.3.4.
I can't work out how to save the iptables. I searched the whole system for files/folders containing the name "iptables" and got 3 results:
/user/local/lib/iptables
/sbin/iptables
/lib/iptables
I've tried iptables save, iptables-save and iptables save active.
"iptables save" and "iptables save active" give me an invalid argument error. "iptables-save" isn't a valid command. "iptables --help" gives me a list of valid switches, none of which have to do with saving.
how I can save the iptables?
View 1 Replies
View Related
Jul 17, 2011
I recently installed openSuse and eclipse. im trying to build a simple c++ program. i installed gcc++. but when i build the program, im getting this error: Error: Program "make" is not found in PATH.
View 3 Replies
View Related
Jul 17, 2009
Java applet not loading image with relative path(e.g. images/1.jpg) but loads image with absolute path(i.e. from /root/user/images/1.jpg) . This is a problem when i want to host the applet on web server
View 2 Replies
View Related
Oct 21, 2010
how to add a path to PATH variable permanently so that it remains persisent even after closing shell and rebooting the system when i added a path, to variable it remained there as long as i didn't closed the shell. but when i reopened it ,changed were undone.
View 2 Replies
View Related
Oct 7, 2010
I am getting an error as below.
How do I resolve the error: make[2]: *** No rule to make target `', needed by `mpg123'.
How can I resolve this error.
View 4 Replies
View Related
Jan 13, 2010
I have Ubuntu 9.10 dual booting with Windows7.My ext3 /home is mounted as F: in windows.I share a firefox profile between them so that when i am in Windows my firefox uses the same profile as it does when in Ubuntu.It all worked great until recently. I am unable to save files by right clicking and save as. In the config i am unable to set a directory to save to. It neer asks me where to save to. Just nothing happens. some off my book marks are all messed up as well, my rss feeds have the same post on some random website every time i log on and i have to manually refresh to get the correct feeds back. I am unable to delete the random bookmark.
View 1 Replies
View Related
Apr 19, 2009
I am trying to figure out how i can add the path /usr/sbin/ into the $PATH variable. I want this to be used from the normal account. I am bored settinh this manualy each time my computer starts.
View 2 Replies
View Related