I have to run a shell script and store whatever is performed in it into a log file. the path can be altered for the log file. how can i do that ?
nikita.
0
Newbie Poster
Recommended Answers
Jump to PostIf you are using
bash
just execute the file with the-x
flag. Consider the following:$ cat t.sh #!/bin/bash echo "Foo" >&2 echo "Bar" >&1 $ bash t.sh Foo Bar $ bash -x t.sh + echo Foo Foo + echo Bar Bar $
You …
All 4 Replies
L7Sqr
227
Practically a Master Poster
nikita.
0
Newbie Poster
L7Sqr
227
Practically a Master Poster
nikita.
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.