Skip to main content
7 events
when toggle format what by license comment
Jul 20, 2015 at 13:46 comment added dr_ @EdwardBlack You can run a script from anywhere, just add the relevant absolute paths. In general, using relative paths is a bad idea as it can break things easily.
Jul 20, 2015 at 13:44 comment added Black @McSinyx NICE! It works :) Thank you, this will be VERY usefull!
Jul 20, 2015 at 13:41 comment added Black @McSinyx The problem is that the directory is not saved, even when i execute cd /mnt/sdb1/ then i will be in the root directory again at the next execution of a command. But your second solution looks logical to me, i try it.
Jul 20, 2015 at 13:37 comment added McSinyx Man, so just add the cd command before tar, then you can go back, or use cd /mnt/sdb1 && tar -czf new.tar.gz myfile.csv && cd / if you prefer one line cmd.
Jul 20, 2015 at 13:31 history edited dr_ CC BY-SA 3.0
added 150 characters in body
Jul 20, 2015 at 13:31 comment added Black I know, but i have to do it from the root directory, because i execute the command from a script.
Jul 20, 2015 at 13:30 history answered dr_ CC BY-SA 3.0