Hello all,
I`m developing a web shell client, with tab functionality "code completion" and a have a question.
Anyone know a way to open a local tty persistent connection where I can to execute multiple commands with one session, i wont like to exec all time Runtime.getRuntime().exec("command");
Any suggestion?
Regards
...
I know the string "foobar" generates the SHA 256 hash c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2 using
http://hash.online-convert.com/sha256-generator
However the command line shell:
hendry@x201 ~$ echo foobar | sha256sum
aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f -
Generates a different ...
I start a new bash shell, and execute:
ulimit -m 102400
ulimit -a
"
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 20
file size (blocks, -f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 64
max memory siz...
I am attempting to mirror a directory on a remote server using rsync. However, I would like a copy of all newly created files to be stored in a separate directory on the local machine.
For example, if a new file is added on the remote server, I would like it to mirror regularly (for example, to ~/mirror), but save an additional copy of...
I would like to know how to do this:
Environment: UNIX
I would like to write a script which can be scheduled to run on a remote machine. It would read the DB details (which is
residing on another machine) from a config file which looks like this:
user=
pass=
product1_SID=
product2_SID=
...
Each product has its own database files. So...
How would I get just the filename without the extension and no path?
The following gives me no extension but I still have the path attached:
source_file_filename_no_ext=${source_file%.*}
...
Hi
I have a file that is just one line (one HUGE line) to parse. I want to parse out the value that appears between "Undefined error code" and " id" on this line. The thing is this appears multiple times on the same line with different values everywhere. The following code only gives me the last instance.
cat bad_events_P2J3.xml | sed...
Hello,
As the tile suggests, I want to get a list of all packages that provide a certain virtual package.
A way of doing this would be to write a shell script that parses all output of
apt-cache search -f .*
And spits out all packages that have the virtual package in the provides section.
The problem with this approach is that it tak...
Hey!
I have two lists of IP addresses. I need to merge them into three files, the intersection, those from list1 only and those from list2 only.
can I do this with awk/diff or any other simple unix command? How?
The files look like this:
111.222.333.444
111.222.333.445
111.222.333.448
Thank you!
...
I would like to take a string that may have multiple spaces in it and do the following:
1) Replace whitespace with an underscore
2) Remove any characters that are not A-Z or 0-9
3) Make the result all lowercase
Then be able to use the result as a variable. Any ideas?
...
Hi, i am learning shell scriptnig,
is there any way i can test the operation like checking file permission on a file..
like...
i know some of the way like. searching the file through find command using permission,
or in "ls...| grep 'r--r--r' smthg.. whatever permission u wan't
I have some file how i check whether the file have the requ...
Hi,
I noticed that when I use backticks in perl the commands are executed using sh, not bash, giving me some problems.
How can I change that behavior so perl will use bash?
PS. The command that I'm trying to run is:
paste filename <(cut -d \" \" -f 2 filename2 | grep -v mean) >> filename3
...
I am trying to find a way to shell or communicate with GroupWise so that I can open and then send an email to a recipient programatically with C#. I don't have any code, just looking for an api call or a way to shell to get the email open.
...
I am looking for a way to access Lotus Notes to get the program to pop a new email for me to enter recipient, subject, and body information. Does anyone know of a way to shell a command to Lotus Notes to get the email window to open? I am trying to do this using c#
...
hello,
i need to restart my php program when the memory of the program exceeds 500 mb ...
it can be done by any script in php or in shell ????
...
Howdy,
Can I configure bash on Linux to write a copy of all stdout and stderr to a regular file, without having to specify the redirection for each command?
Thanks,
Kent
...
What is the difference between the following to commands?
sort -u FILE
sort FILE | uniq
Thanks!
...
If there are dates as 2010-06-01 and another as 2010-05-15
Using shell script or date command how to get the number of days between the two dates
Thanks..
...
Hi,
I ssh to another server and run a shell script like this nohup ./script.sh 1>/dev/null 2>&1 &
Then type exit to exit from the server. However it just hangs. The server is Solaris.
How can I exit properly without hanging??
Thanks.
...
Hi All
I ask again this question and add more info, I simply couldn't find a way to add comment to the guy that answered me (iandisme)
I am quite new to Android and Java I am looking for example of how to use class:
SingleLaunchActivityTestCase
Till now I am using class InstrumentationTestCase but the problem is that for each launche...