The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
63 views

Does the sh command use the users shell

Does the sh linux command use the users current shell, even if its not bash? For example, let's say the user bob is running csh. If I create a script with functions and csh and try and execute it ...
0
votes
2answers
318 views

LSF-Bad resource requirement syntax Error

I am trying to use the memory resource allocation command available in LSF. A normal format of the command is : bsub -R "rusage [mem=1000]" sleep 100s When I launch this command directly from ...
0
votes
1answer
73 views

How do I use the excape characters properly in csh's builtin echo command?

I'm trying to build my fstab during install with a script, so I want to have something like this: printf '# Device\t\tMountpoint\tFSType\tOptions\t\tDump\tPass#' >> /mnt/etc/fstab printf ...
1
vote
1answer
79 views

How do I use a shell builtin command rather than the system command?

I'm specifically asking about FreeBSD. I am using the default /bin/csh as my shell. There is a binary version of echo at /bin/echo, and there is an echo command built into the shell. The system ...
1
vote
0answers
858 views

How do I autocomplete from a wordlist and filenames in (t)csh?

To give an example everyone knows: Can you provide a csh complete command which allows to autocomplete any argument to ls to be either an option or a filename? Useful documentation here. The ...
0
votes
1answer
79 views

Csh to ignore case when referring filenames

In csh, is there any way to ignore case in command prompt? I hope doing cp/mv/vi/etc... can just type lowercase filenames and still be able to use tab to auto-complete.
1
vote
2answers
108 views

Analog of '& in cshell' in bash

I was using & in cshell in the end of a command, in order to execute the command as an independent process from the terminal: kate filename.txt& How I should do this in bash?
7
votes
3answers
6k views

Force SSH to use a specific shell

Is there any way to force SSH to use a particular shell on the remote end, regardless of what the user's default shell is? I've tried solutions akin to: ssh host.domain.com /bin/bash -c ...
4
votes
2answers
104 views

ampersand at beginning of a line in csh

What does an ampersand at the beginning of a line do in csh? It seems to be ignored (with no error message), but why? Example: & echo 'hi there' performs the expected echo with no error ...
0
votes
2answers
1k views

SSH not redirecting stdout to local terminal

I have the following relevant lines in a csh script: #!/bin/csh -xv set dvar = `date +"^%m\/%d\/%y"` set filedate = `date +%b%d%Y` set grepstring = "grep "\"$dvar\"" </home/user/log/logfile" set ...
2
votes
5answers
2k views

Search and delete lines matching a pattern along with comments in previous line if any

I have a requirement to write a shell script in csh to search and delete lines matching a pattern along with comments in previous line if any. For example if my file has the following lines Shell ...