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!)
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
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....
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).
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.
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:
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?
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.
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
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?
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 ?
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.
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?
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.
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.
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?
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?
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???
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.
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.
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
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.
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.
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.