csh
How to determine current remote connection type? (rsh or ssh)
I want to know if there is some methods to find out the current connection type to remote server (rsh or ssh开发者_如何学Go?). Environment is Solaris 9, SuSE linux, csh. You can use echo $SSH_CONNECTI[详细]
2023-01-12 22:39 分类:问答Csh alias with perl one-liner evaluates when alias is created and not when alias is used
I know, I know, I should use a modern shell... Anyway, so here is the alias: alias p4client echo `p4 info | perl -ne \'s/Client name: (.*)$/print $1/e\'`[详细]
2023-01-12 22:39 分类:问答source .bashrc from .cshrc
Is it possible to source a .bshrc file from .cshrc in a non-interactive session? I\'m asking because tcsh is our default shell at work and the .cshrc has to be used to set up the environment initially[详细]
2023-01-10 05:14 分类:问答How to determine the current interactive shell that I'm in (command-line)
How can I de开发者_如何转开发termine the current shell I am working on? Would the output of the ps command alone be sufficient?[详细]
2023-01-09 05:41 分类:问答Output of last shell command
Not until midway through a 3 hour build script, I\'ll remember that I want to see something at the beginning of the output after it\'s done.At this point I\'ve exceeded the number of lines in my termi[详细]
2023-01-07 19:46 分类:问答Overcoming os.system() limitation in Python 2.3
I am having a problem converting one of my company\'s scripts from csh to Python.The csh script calls an aliased command, but when I call开发者_开发问答 that same aliased command via os.system(), it d[详细]
2023-01-07 03:21 分类:问答problems with cut (unix)
I\'ve got strange problem with cut I wrote script, there I have row: ... | cut -d\" \" -f3,4 >! out[详细]
2023-01-02 12:46 分类:问答from string to integer (scripts)
I have this snippet of the code: set calls = `cut -d\" \" -f2 ${2} | grep -c \"$numbers\"` set messages = `cut -d\" \" -f2 ${3} | grep -c \"$numbers\"`[详细]
2023-01-02 10:43 分类:问答Selecting lines which match any word from a list with grep
Cangrep pick lines if at least one element from a list of words appeared? For example grep \"hello开发者_如何学Go world\" file1[详细]
2023-01-01 16:44 分类:问答transferring via pipeline
I need to transfer data via pipe and also transfer file with this data, can I do something like this inside the script?[详细]
2023-01-01 13:49 分类:问答