801 reputation
310
bio website absolutelytech.com
location Bangalore, India
age
visits member for 2 years, 10 months
seen Apr 8 at 21:18

Apr
26
comment How do I transfer multiple files with a common suffix and prefix using an offset?
You said you're using sftp with prefix and suffic as 'sequence_1' and '.jpg' respectively. So just change suffix to '01.jpg' and it would work, right?. The only accepted files then would be sequence_1_xx01.jpg, where xx can be any number/character.
Apr
26
comment How do I transfer multiple files with a common suffix and prefix using an offset?
For your specific case, wouldn't 'sequence_1' and '01.jpg' as prefix and suffix work?
Apr
20
comment scp: localhost password not accepted
To add to bahamat's comment, you must not use a passphrase for your keys for it to work.
Apr
12
comment Remove a directory level from a website URL
Why aren't you using named virtual hosts in apache?
Apr
10
comment View stdout/stderr of systemd service
Shouldn't standard IO redirection operators work in this context. Something like ExecStart=/usr/local/bin/filesync-client --port 2500 2>/tmp/filesync.log
Apr
6
comment What is the easiest way to execute text from tail at the command line?
This doesn't work. sh and sh -s does same thing, atleast in this case.
Oct
27
comment Copy just permissions and ownership from one tar file to another
@Gilles Thanks a lot. I ended up manually setting up permissions for the files. I'll remember the instructions next time when my backup goes corrupt.
Oct
23
comment Copy just permissions and ownership from one tar file to another
I could do that but on untarring any of the backups, the ownership is lost instantly because the users and groups don't exist on my computer, they exist on my phone. This isn't possible to do on the phone as well, it doesn't have getfacl and setfacl
Jun
25
comment Should the mysql user have access to /var/lib/mysql?
The directory /var/lib/mysql should be owned by user mysql with permissions 700. Atleast thats how it is on my box. Also all the files inside are owned by mysql with 700 permissions. I can execute ls fine on my computer. Don't know why it didn't work for you. What do you see when you do sudo ls -la /var/lib/mysql? Is owner mysql and perms 700?
Jun
4
comment How to move the existing mount point from /usr/local to /usr in Ubuntu 11.04?
Also moving between different filesystem takes lot of times compared to moving within same filesystem. So mkdir /media/usr/local && mv /media/usr/* /media/usr/local/, mv /media/root/usr/* /media/usr/ would be a better option. No?
Jun
4
comment How to move the existing mount point from /usr/local to /usr in Ubuntu 11.04?
/dev/pv/usr in while other files that should be under /usr are now on /dev/pv/usr should be /dev/pv/root/usr
Jun
4
comment Apache won't start on Fedora 15
No, don't kill them. Not sure what's wrong. You should system logs for more details.
Jun
3
comment Use find to execute series of commands
Makes sense. Thanks :)
Jun
3
comment Use find to execute series of commands
Never mind. Found the answer
Jun
3
comment Use find to execute series of commands
I've always used \{\} thinking it would cause a bash expansion. Why doesn't bash expand {} in this case?
Jun
3
comment Installed TigerVNC, can't connect?
@Jason94: Try iptables -A INPUT -p tcp –dport 5900 -j ACCEPT in terminal. However changes will be lost unless you make it execute at startup. Hope that helps.
Jun
2
comment Precedence of stdin and stdout redirection in Bash
@fred: That's the only way it makes sense. I was thinking it in terms of pipes (fluid pipes) wherein stderr got connected to stdout and stdout to foo and the output was fed from one end. Not it makes sense. Thanks a lot :)
Jun
2
comment Precedence of stdin and stdout redirection in Bash
@fred: Thanks for your answer. I tried all the examples and they work as documented. But I don't get the logic behind it. If the order is from left to right ls 2>&1 >foo would mean: 1. Redirect any output from stderr to stdin 2. Redirect any output from stdin to foo. 3. Execute ls. So theoretically stderr->stdin->foo is the order we are mentioning in the command which seems perfectly legitimate to me. I understand it doesn't work, but I am not getting what's wrong with it.
Jun
2
comment Precedence of stdin and stdout redirection in Bash
I am not getting it. Since you said order is from left to right, shouldn't ls > foo 2>&1 mean redirect stdout to foo then redirect stderr to stdout. So this shouldn't work. Similarly second command should work. What am I missing here?