16 posts tagged with linux and bash.
Displaying 1 through 16 of 16. Subscribe:

scp return codes different?

I'm working on testing a modification to a bash script for work. I'm trying to scp a file to the same source directory. For testing purposes, I've altered the permissions on the target directory so that the scp'ing user doesn't have permissions to write to it. The first try I get a return code of 1. The second try I get a return code of 0, even though the permissions haven't changed and the file actually fails to transfer. [more inside]
posted by tckma on Jun 11, 2015 - 8 answers

You don't know how to use the three bash shells?

There is this bash script that should take the contents of a log file, grep for a keyword, and then send the entire line to another script. It isn't doing that, and I'm not sure why. Can you spot the error? [more inside]
posted by TimeDoctor on Jul 9, 2013 - 10 answers

Need terminal syntax for scheduling a unix program

Need help scheduling a unix task under Mac OS. Probably an easy question for those who understand such things. [more inside]
posted by Alaska Jack on Mar 23, 2011 - 16 answers

Shell script handling CSV columns

I'm using a shell script to handle some excel docs by converting to csv and reformatting it a little bit. I'm having some difficulty going on with the next part of the script. Some help would be great. :) [more inside]
posted by fightoplankton on Jun 10, 2009 - 11 answers

How do I tell my Mac that I'm me?

Question about changing my terminal prompt (and other matters) in an OS X Bash shell. [more inside]
posted by grumblebee on Oct 15, 2008 - 3 answers

How to delete long path names with bash shell script?

BASHFilter! I've got a simple bash script that I've written to clean out a frequently used NAS. I run it every 30 days, it sets proper permissions, removes extraneous files and directories, but it frequently hangs on paths longer than 255 characters. [more inside]
posted by jackofsaxons on Jun 2, 2008 - 13 answers

Help installing Debian Etch?

Okay I'm trying to set up rtorrent and wtorrent using Debian Etch and this guide. Installs and updates the kernel fine, then I get "bash command not found" when trying to run through the rest of the tutorial. [more inside]
posted by geoff. on May 23, 2008 - 5 answers

Simple Filename Parsing Question

Should-be-simple Linux timestamped file parsing question. [more inside]
posted by yellowbkpk on Mar 9, 2008 - 7 answers

How can I insert text into an existing PDF using Ghostscript?

How can I insert text into an existing PDF using Ghostscript? [more inside]
posted by jackofsaxons on Dec 21, 2007 - 3 answers

Remotely starting local X application?

How do I restart an X Windows application running on a remote machine, and have it display on that computer's locally-attached display? (I do not want to forward/tunnel it to the machine I'm sitting at.) [more inside]
posted by Kadin2048 on Nov 16, 2007 - 16 answers

Bash, I command thee to always...

How do I get bash to automagically execute a line or two of code at login? [more inside]
posted by nakedcodemonkey on Oct 22, 2007 - 25 answers

Strip me some mp3 urls.

In Linux, what's the simplest way to take a podcast RSS file as input, and output a file containing just the URLs of all the MP3s enclosed in the RSS file? Difficulty: the method must only Bash + GNU tools, Python or Perl, with no non-standard add-on libraries or dependencies required.
posted by Jimbob on May 10, 2007 - 22 answers

How to get a screen session to work the way I want to?

How do I get my Linux shell to behave the same when I am using screen, as when I am not using it? [more inside]
posted by davar on Nov 5, 2006 - 11 answers

Changing gnome wallpaper

Linux / Ubuntu / Gnome question - how do I tell Gnome "Hey, the jpg you're using as desktop wallpaper has been updated with a new image. Go reload it and display the new version?" in a Python or Bash script? [more inside]
posted by Jimbob on Sep 26, 2006 - 6 answers

No more shell games!

*nix shell "best practices" anyone? [more inside]
posted by furtive on May 31, 2006 - 9 answers

Calling *NIX shell wizards.

Calling *NIX shell wizards. [more inside]
posted by ori on Dec 11, 2005 - 33 answers

Page: 1