We want to 7zip many database files (mysql, Oracle, and SQL Server dumps), various standard files (excel, word, etc), but we are afraid that once we 7Zip them and delete the originals it can happen that archive is corrupted or it has some error and the files will be lost.
Is there a way that once you 7zip something you can check and verify that you can unzip the file later on?
I am trying to translate a simple program to the command line using unix utilities.
1. The problem statement, all variables and given/known data:
Basic Assignment
Write a program similar to the Unix "tee" command.
Program
The Unix "tee" command is used to pull out copies of a data stream. It is typically used in conjunction with pipes (analogous to a T-joint in plumbing, hence the name).
Hello all ,
I have two files a.txt and b.txt which have same content . They contain data that is fetched from database through a java program. When I delete a line in a.txt and run the below command
comm -13 a.txt b.txt
I am not getting the expected result i.e. the line i deleted from a.txt. Instead i am getting the two lines i.e. the line I deleted and the line following it.
Hi All,
I have been struggling for a week trying to run a unix command from my java program.
the unix command is = ssh dmdev3@tsapid01-zt3d01 ':> /t3/envs/dmdev3/test/file_list.txt'
when i try to run this command directly on my unix console, it works perfectly.
but when i try it form my JAVA program, i get the below mentioned error
ksh: :> /t3/envs/dmdev3/test/file_list.txt: not found
Any Unix program (command) to connect to a domain uses a method 'gethostbyname' from RESOLVER. First thing what this method does is reading /etc/nsswitch.conf
Where it finds a line: 'hosts: files dns' which means: to look for hosts in files (/etc/hosts), then query dns. So, if you delete 'dns' from this line and leave only 'files', user can only access hosts listed in '/etc/hosts'.
Hi All,
I have been struggling for a week trying to run a unix command from my java program.
the unix command is:
Code:
ssh dmdev3@tsapid01-zt3d01 ':> /t3/envs/dmdev3/test/file_list.txt'
when i try to run this command directly on my unix console, it works perfectly.
but when i try it form my JAVA program, i get the below mentioned error
Code:
ksh: :> /t3/envs/dmdev3/test/file_
So what I wanted to do is compress files (using 7zip) and split a 600MB folder into 199MB parts, but sadly when I tried to do this task with archive manager it gave me an error, but I know that if I use terminal it will work.
This question is somewhat similar to this: Unix/Linux command syntax
Suppose I have a program foo that takes arguments -a and -b. If both a and b take a string argument what is the meaning of this
foo -b -a bar
If multiple b:s are allowed
foo -b -a -b
??
Is there a true specification of the command line syntax somewhere?